19 lines
504 B
JavaScript
19 lines
504 B
JavaScript
const express = require("express");
|
|
|
|
const citiesRouter = require('./routes/citiesRouter');
|
|
const roadsRouter = require('./routes/roadsRouter');
|
|
const countriesRouter = require('./routes/countriesRouter');
|
|
const pathRouter = require('./routes/pathRouter')
|
|
|
|
|
|
const server = express();
|
|
|
|
server.use(express.json());
|
|
|
|
server.use('/api/cities', citiesRouter);
|
|
server.use('/api/roads', roadsRouter);
|
|
server.use('/api/countries', countriesRouter);
|
|
server.use('/api/path', pathRouter);
|
|
|
|
module.exports = server;
|