-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Conversation
@@ -38,7 +38,7 @@ export class NNIRestServer extends RestServer { | |||
* NNIRestServer's own router registration | |||
*/ | |||
protected registerRestHandler(): void { | |||
this.app.use(express.static('static')); | |||
this.app.use(getPrefixUrl(), express.static('static')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing a semicolon here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
@@ -126,3 +126,8 @@ export function getDispatcherPipe(): string | null { | |||
export function getAPIRootUrl(): string { | |||
return getExperimentStartupInfo().apiRootUrl; | |||
} | |||
|
|||
export function getPrefixUrl(): string { | |||
const prefix = getExperimentStartupInfo().urlprefix === ''?'':`/${getExperimentStartupInfo().urlprefix}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add spaces around operators to make the style in sync with other codes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not add lint for this format in next release?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
No description provided.