flappy Bird

This commit is contained in:
Kai Ritthaler 2025-06-27 08:59:23 +02:00 committed by Luisa Bellitto
parent 90a4a5fd59
commit 9f9a21818a
13 changed files with 397 additions and 67 deletions

View file

@ -5,7 +5,7 @@ import { Request, Response, NextFunction } from "express";
// Configure multer to store files in memory
const multerInstance = multer({
storage: multer.memoryStorage(),
limits: { fileSize: 5 * 1024 * 1024 }, // Limit file size to 5 MB
limits: { fileSize: 30 * 1024 * 1024 }, // Limit file size to 30 MB
});
export const upload = (req: Request, res: Response, next: NextFunction) => {

View file

@ -4,7 +4,7 @@ import { StatusCodes } from "http-status-codes";
const multerInstance = multer({
storage: multer.memoryStorage(),
limits: { fileSize: 5 * 1024 * 1024 }, // 5 MB
limits: { fileSize: 30 * 1024 * 1024 }, // 30 MB
});
export const upload = (req: Request, res: Response, next: NextFunction) => {