1
Fork 0
solar-conflux/typescript/multiplayer-backend/config.ts
Matei Adriel 7f3b756378
typescript(multiplayer-backend): initial commit
Signed-off-by: prescientmoon <git@moonythm.dev>
2019-05-19 21:37:39 +03:00

26 lines
481 B
TypeScript

//interfaces
export interface routeList {
[key: string]: string
}
export interface whiteListUrl {
url: string
methods?: string
}
//routes
export const baseUrl = "./src/routes/"
export const routes: routeList = {
"/logs": "logging/logs.ts",
"/auth": "auth/auth.ts"
}
//whitelist of urls
export const whiteList: whiteListUrl[] = [{
url: "localhost:4200"
},{
url: "localhost:8000"
},{
url: "localhost:3000"
}]
export const staticRoutes:string[] = []