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

parent 876e1595
......@@ -686,9 +686,9 @@ export class QuizRouter extends AbstractRouter {
return buffer;
}
@Get('/member-group')
public getFreeMemberGroup(@HeaderParam('authorization') authorization: string): object {
const activeQuiz: IQuizEntity = QuizDAO.getQuizByToken(authorization);
@Get('/member-group/:quizName')
public getFreeMemberGroup(@Param('quizName') quizName: string): object {
const activeQuiz: IQuizEntity = QuizDAO.getActiveQuizByName(quizName);
if (!activeQuiz) {
return {
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