diff --git a/app/src/api/api.ts b/app/src/api/api.ts index 253a2081..2ab9ba3b 100644 --- a/app/src/api/api.ts +++ b/app/src/api/api.ts @@ -7,7 +7,7 @@ import { queryLocation } from './services/search'; import buildingsRouter from './routes/buildingsRouter'; -const server = express(); +const server = express.Router() // parse POSTed json body server.use(bodyParser.json()); @@ -138,4 +138,4 @@ server.use((req, res) => { res.status(404).json({ error: 'Resource not found'}); }) -export default server; \ No newline at end of file +export default server;