fix: 修改返回页面路径问题 (#58)

This commit is contained in:
luch 2024-01-30 23:14:13 +08:00 committed by sudoooooo
parent 9390295f5b
commit e3fa804fa8
2 changed files with 3 additions and 3 deletions

View File

@ -8,11 +8,11 @@ export class SurveyUIController {
@Get('/')
home(@Res() res: Response) {
res.sendFile(join(__dirname, 'src/../', 'public', 'management.html'));
res.sendFile(join(process.cwd(), 'public', 'management.html'));
}
@Get('/management/:surveyId')
management(@Param('surveyId') surveyId: string, @Res() res: Response) {
res.sendFile(join(__dirname, 'src/../', 'public', 'management.html'));
res.sendFile(join(process.cwd(), 'public', 'management.html'));
}
}

View File

@ -8,6 +8,6 @@ export class SurveyResponseUIController {
@Get('/render/:surveyPath')
render(@Param('surveyPath') surveyPath: string, @Res() res: Response) {
res.sendFile(join(__dirname, 'src/../', 'public', 'render.html'));
res.sendFile(join(process.cwd(), 'public', 'render.html'));
}
}