You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
301 B
15 lines
301 B
3 years ago
|
const express = require('express');
|
||
|
const path = require('path');
|
||
|
|
||
|
const API_ROOT_PATH = require('./lib/consts/API_ROOT_PATH');
|
||
|
|
||
|
const echoRoute = require('./routes/echo');
|
||
|
|
||
|
const app = express();
|
||
|
|
||
|
app.use(express.json());
|
||
|
|
||
|
app.use(path.join(API_ROOT_PATH, 'echo'), echoRoute);
|
||
|
|
||
|
module.exports = app;
|