1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-06 14:10:06 +00:00

fix: organized code for usage of multer

This commit is contained in:
Saad Jutt
2022-02-28 04:04:30 +05:00
parent c5738792b0
commit ce0a5e1229
6 changed files with 53 additions and 28 deletions

View File

@@ -0,0 +1,9 @@
import { Express } from 'express'
import webRouter from './web'
import apiRouter from './api'
export const setupRoutes = (app: Express) => {
app.use('/', webRouter)
app.use('/SASjsApi', apiRouter)
}