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

test: fixed unhandled timeout

This commit is contained in:
Saad Jutt
2022-04-20 06:50:11 +05:00
parent d55a619d64
commit 7fe43ae0b7
9 changed files with 54 additions and 56 deletions

View File

@@ -1,5 +1,4 @@
import express from 'express'
import { Request, Security, Route, Tags, Example, Get } from 'tsoa'
import { Route, Tags, Example, Get } from 'tsoa'
export interface InfoResponse {
mode: string
@@ -29,7 +28,8 @@ export class InfoController {
process.env.CORS ?? process.env.MODE === 'server'
? 'disable'
: 'enable',
whiteList: process.env.WHITELIST?.split(' ') ?? [],
whiteList:
process.env.WHITELIST?.split(' ')?.filter((url) => !!url) ?? [],
protocol: process.env.PROTOCOL ?? 'http'
}
return response