Commit 410b9c93 authored by Christopher Mark Fullarton's avatar Christopher Mark Fullarton
Browse files

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;
public getFreeMemberGroup(@HeaderParam('authorization') authorization: string): object {
const activeQuiz: IQuizEntity = QuizDAO.getQuizByToken(authorization);
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