mirror of
https://github.com/directus/directus.git
synced 2026-02-11 00:45:03 -05:00
Install body parser
This commit is contained in:
@@ -2,9 +2,10 @@ import dotenv from 'dotenv';
|
||||
dotenv.config();
|
||||
|
||||
import express from 'express';
|
||||
import bodyParser from 'body-parser';
|
||||
import { errorHandler } from './error';
|
||||
import itemsRouter from './routes/items';
|
||||
|
||||
const app = express().use('/items', itemsRouter).use(errorHandler);
|
||||
const app = express().use(bodyParser.json()).use('/items', itemsRouter).use(errorHandler);
|
||||
|
||||
export default app;
|
||||
|
||||
Reference in New Issue
Block a user