Switch from express app to router in API
Co-Authored-By: Tom Russell <tomalrussell@gmail.com>
This commit is contained in:
parent
8b78a74874
commit
b5b72e7152
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user