Docs write and example of how to upload file
See original GitHub issuePlease Could you write and example how to upload a file and how can i write a direct endpoint using de app express what i mean i try to write this code using expressesjs example
` async function main() { await createConnection();
const app = createApp(AppController, { store: session => new (sqliteStoreFactory(session))({ db: ‘db.sqlite3’ }) }); app.get(‘/api/test’, (req, res) => { res.send(‘hello world’); });
const httpServer = http.createServer(app);
const port = Config.get(‘settings’, ‘port’, 3000);
httpServer.listen(port, () => {
console.log(Listening on port ${port}...
);
});
}
`
im tyring this because i using multer to handle the file but the example from the packege use the app express but this example didn’t work i getting 404 not found
app.get(‘/api/test’, (req, res) => { res.send(‘hello world’); });
my question is the “app” variable is the expressjs why is not working when i call the end point
thanks for the help!!
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
@jcpc91 if it can help, the last version of the framework now includes support for uploading & downloading files (see here).
hi thanks for you help im implemented with “multer” d