- MVC Architecture Applied.
- Used Express.js a node.js web application framework.
- Path- middleware/upload.js: initializes Multer Storage engine and defines middleware function to save uploaded files in uploads folder.
- Path- resources/static/assets/uploads: folder for storing uploaded files.
- Path- routes/index.js: defines routes for endpoints that is called from HTTP Client, use controller to handle requests.
- Path- server.js: initializes routes, runs Express app.
npm install
npm start
POST http://localhost:8080/upload
GET http://localhost:8080/file/{FILE_NAME.FORMAT}
GET http://localhost:8080/files
DELETE http://localhost:8080/files/{FILE_NAME.FORMAT}