Switch from express app to router in API

Co-Authored-By: Tom Russell <tomalrussell@gmail.com>
This commit is contained in:
mz8i 2019-08-16 10:57:15 +01:00 committed by GitHub
parent 8b78a74874
commit b5b72e7152
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ import { queryLocation } from './services/search';
import buildingsRouter from './routes/buildingsRouter'; import buildingsRouter from './routes/buildingsRouter';
const server = express(); const server = express.Router()
// parse POSTed json body // parse POSTed json body
server.use(bodyParser.json()); server.use(bodyParser.json());