File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
packages/quizms-firebase/src/functions/api Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { validate } from "@olinfo/quizms/utils";
22import type { CallableRequest } from "firebase-functions/https" ;
33import * as logger from "firebase-functions/logger" ;
44
5+ import { adminLogin } from "./admin" ;
56import { type ApiRequest , apiRequestSchema } from "./schema" ;
67import { studentLogin } from "./student" ;
78import {
@@ -31,6 +32,8 @@ async function dispatch(request: CallableRequest) {
3132
3233 try {
3334 switch ( data . action ) {
35+ case "adminLogin" :
36+ return await adminLogin ( request , data ) ;
3437 case "studentLogin" :
3538 return await studentLogin ( request , data ) ;
3639 case "teacherLogin" :
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ export const teacherFinalizeParticipationSchema = z.object({
4242export type TeacherFinalizeParticipation = z . infer < typeof teacherFinalizeParticipationSchema > ;
4343
4444export const apiRequestSchema = z . discriminatedUnion ( "action" , [
45+ adminLoginSchema ,
4546 studentLoginSchema ,
4647 teacherLoginSchema ,
4748 teacherStartParticipationSchema ,
You can’t perform that action at this time.
0 commit comments