Provides the quizname in the url when requesting a free member group

parent 876e1595
...@@ -686,9 +686,9 @@ export class QuizRouter extends AbstractRouter { ...@@ -686,9 +686,9 @@ export class QuizRouter extends AbstractRouter {
return buffer; return buffer;
} }
@Get('/member-group') @Get('/member-group/:quizName')
public getFreeMemberGroup(@HeaderParam('authorization') authorization: string): object { public getFreeMemberGroup(@Param('quizName') quizName: string): object {
const activeQuiz: IQuizEntity = QuizDAO.getQuizByToken(authorization); const activeQuiz: IQuizEntity = QuizDAO.getActiveQuizByName(quizName);
if (!activeQuiz) { if (!activeQuiz) {
return { return {
status: StatusProtocol.Failed, status: StatusProtocol.Failed,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment