2019-04-15 17:59:30 +02:00
|
|
|
//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
|
2019-05-19 20:37:39 +02:00
|
|
|
export const whiteList: whiteListUrl[] = [{
|
|
|
|
url: "localhost:4200"
|
|
|
|
},{
|
|
|
|
url: "localhost:8000"
|
|
|
|
},{
|
|
|
|
url: "localhost:3000"
|
|
|
|
}]
|
|
|
|
|
|
|
|
export const staticRoutes:string[] = []
|