mirror of
https://github.com/detleph/server.git
synced 2026-09-04 08:36:06 +02:00
Add controller and routes to upload images
+ Checks for valid image formats + Limits file size + Requires authentication + Disabled for now
This commit is contained in:
+4
-3
@@ -52,7 +52,6 @@ async function main() {
|
||||
|
||||
app.use("/api/admins", adminRouter);
|
||||
|
||||
<<<<<<< HEAD
|
||||
app.use("/api/organisations", organisationRouter);
|
||||
|
||||
app.use("/api/groups", groupRouter);
|
||||
@@ -63,9 +62,11 @@ async function main() {
|
||||
|
||||
// Error handling
|
||||
app.use(defaultErrorHandler); // Not working
|
||||
=======
|
||||
|
||||
app.use("/api/media", mediaRouter);
|
||||
>>>>>>> Add express.static() to serve semi-static files
|
||||
|
||||
// Disable the media router for now
|
||||
// app.use("/api/media", mediaRouter);
|
||||
|
||||
app.listen(process.env.PORT, () => {
|
||||
logger.info(`Listening on port ${process.env.PORT}`);
|
||||
|
||||
Reference in New Issue
Block a user