fix: 修改返回页面路径问题 (#58)
This commit is contained in:
parent
393528fbe7
commit
6ce03e6ab9
@ -8,11 +8,11 @@ export class SurveyUIController {
|
|||||||
|
|
||||||
@Get('/')
|
@Get('/')
|
||||||
home(@Res() res: Response) {
|
home(@Res() res: Response) {
|
||||||
res.sendFile(join(__dirname, 'src/../', 'public', 'management.html'));
|
res.sendFile(join(process.cwd(), 'public', 'management.html'));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Get('/management/:surveyId')
|
@Get('/management/:surveyId')
|
||||||
management(@Param('surveyId') surveyId: string, @Res() res: Response) {
|
management(@Param('surveyId') surveyId: string, @Res() res: Response) {
|
||||||
res.sendFile(join(__dirname, 'src/../', 'public', 'management.html'));
|
res.sendFile(join(process.cwd(), 'public', 'management.html'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,6 @@ export class SurveyResponseUIController {
|
|||||||
|
|
||||||
@Get('/render/:surveyPath')
|
@Get('/render/:surveyPath')
|
||||||
render(@Param('surveyPath') surveyPath: string, @Res() res: Response) {
|
render(@Param('surveyPath') surveyPath: string, @Res() res: Response) {
|
||||||
res.sendFile(join(__dirname, 'src/../', 'public', 'render.html'));
|
res.sendFile(join(process.cwd(), 'public', 'render.html'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user