rozetko
2 years ago
2 changed files with 19 additions and 10 deletions
@ -0,0 +1,16 @@ |
|||||||
|
import { EXPORTED_PATH } from '../config'; |
||||||
|
import { router as tasksRouter } from '../routes/tasks'; |
||||||
|
import { router as statusRouter } from '../routes/status'; |
||||||
|
import { router as deleteRouter } from '../routes/delete'; |
||||||
|
|
||||||
|
import * as express from 'express'; |
||||||
|
|
||||||
|
|
||||||
|
export const router = express.Router(); |
||||||
|
|
||||||
|
router.use('/status', statusRouter); |
||||||
|
|
||||||
|
router.use('/tasks', tasksRouter); |
||||||
|
router.use('/delete', deleteRouter); |
||||||
|
|
||||||
|
router.use('/static', express.static(EXPORTED_PATH)); |
Loading…
Reference in new issue