|
|
@ -1,3 +1,4 @@ |
|
|
|
|
|
|
|
const cors = require('cors'); |
|
|
|
const express = require('express'); |
|
|
|
const express = require('express'); |
|
|
|
const path = require('path'); |
|
|
|
const path = require('path'); |
|
|
|
|
|
|
|
|
|
|
@ -9,6 +10,7 @@ const filesRouter = require('./routes/files'); |
|
|
|
const app = express(); |
|
|
|
const app = express(); |
|
|
|
|
|
|
|
|
|
|
|
app.use(express.json()); |
|
|
|
app.use(express.json()); |
|
|
|
|
|
|
|
app.use(cors()); |
|
|
|
|
|
|
|
|
|
|
|
app.use(path.join(API_ROOT_PATH, 'echo'), echoRouter); |
|
|
|
app.use(path.join(API_ROOT_PATH, 'echo'), echoRouter); |
|
|
|
app.use(path.join(API_ROOT_PATH, 'files'), filesRouter); |
|
|
|
app.use(path.join(API_ROOT_PATH, 'files'), filesRouter); |
|
|
|