mirror of
https://github.com/sasjs/server.git
synced 2026-01-14 09:20:06 +00:00
chore: quick fix
This commit is contained in:
@@ -21,10 +21,14 @@ export const getAuthorizedRoutes = () => {
|
|||||||
export const getUri = (req: Request) => {
|
export const getUri = (req: Request) => {
|
||||||
const { baseUrl, path: reqPath } = req
|
const { baseUrl, path: reqPath } = req
|
||||||
|
|
||||||
const appStream = reqPath.split('/')[1]
|
if (baseUrl === '/AppStream') {
|
||||||
|
const appStream = reqPath.split('/')[1]
|
||||||
|
|
||||||
// removing trailing slash of URLs
|
// removing trailing slash of URLs
|
||||||
return (baseUrl + '/' + appStream).replace(/\/$/, '')
|
return (baseUrl + '/' + appStream).replace(/\/$/, '')
|
||||||
|
}
|
||||||
|
|
||||||
|
return baseUrl + reqPath
|
||||||
}
|
}
|
||||||
|
|
||||||
export const isAuthorizingRoute = (req: Request): boolean =>
|
export const isAuthorizingRoute = (req: Request): boolean =>
|
||||||
|
|||||||
Reference in New Issue
Block a user