Skip to content

Commit 619c569

Browse files
🔨 Configure static dir path for public folder
1 parent b3ebb07 commit 619c569

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ app.use(cors());
1515
app.options('*',cors());
1616

1717
// Middlewares
18-
app.use(bodyParser.json());
19-
app.use(bodyParser.urlencoded({ extended: true }))
18+
app.use(bodyParser.json({ limit: '50mb' }));
19+
app.use(bodyParser.urlencoded({ extended: true, limit: '50mb' }))
2020
app.use(morgan('tiny'));
2121
app.use(authJwt());
22+
app.use('/public/uploads', express.static( __dirname + '/public/uploads'));
2223
app.use(errorHandler);
2324

2425
const api = process.env.API_URL;

0 commit comments

Comments
 (0)