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

feat: cli mock testing

This commit is contained in:
2022-10-11 18:37:20 +02:00
parent 0a6b972c65
commit 6434123401
13 changed files with 166 additions and 18 deletions

View File

@@ -3,6 +3,7 @@ import sas9WebRouter from './sas9-web'
import sasViyaWebRouter from './sasviya-web'
import webRouter from './web'
import { MOCK_SERVERTYPEType } from '../../utils'
import { csrfProtection } from '../../middlewares'
const router = express.Router()
@@ -18,7 +19,7 @@ switch (MOCK_SERVERTYPE) {
break
}
default: {
router.use('/', webRouter)
router.use('/', csrfProtection, webRouter)
}
}