fixed missing endpoint GET /routes/:id/pois/:id and added json style fileupload
This commit is contained in:
@@ -12,7 +12,10 @@ const db = openDatabase();
|
||||
const app = express();
|
||||
|
||||
app.disable('x-powered-by');
|
||||
app.use(express.json({ limit: '2mb' }));
|
||||
app.use(express.json({
|
||||
limit: config.maxJsonBodyBytes,
|
||||
type: ['application/json', 'application/*+json', 'text/json']
|
||||
}));
|
||||
app.use(express.urlencoded({ extended: true, limit: '2mb' }));
|
||||
app.use('/api', createApiRouter(db));
|
||||
app.use(express.static(path.join(__dirname, 'public'), { extensions: ['html'] }));
|
||||
|
||||
Reference in New Issue
Block a user