mirror of
https://github.com/sasjs/server.git
synced 2025-12-11 11:44:34 +00:00
feat(api): added autoexec + major type setting changes
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
export const verifyAdmin = (req: any, res: any, next: any) => {
|
||||
import { RequestHandler } from 'express'
|
||||
|
||||
export const verifyAdmin: RequestHandler = (req, res, next) => {
|
||||
const { MODE } = process.env
|
||||
if (MODE?.trim() !== 'server') return next()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user