File tree Expand file tree Collapse file tree
backend/src/api/form-response Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { Elysia } from "elysia" ;
2- import { formResponseDTO , resumeResponseDTO } from "../../types/form-response" ;
2+ import {
3+ formResponseDTO ,
4+ formResponseForFormOwnerDTO ,
5+ resumeResponseDTO ,
6+ } from "../../types/form-response" ;
37import { requireAuth } from "../auth/requireAuth" ;
4- import { resumeResponse , submitResponse } from "./controller" ;
8+ import {
9+ getResponseForFormOwner ,
10+ resumeResponse ,
11+ submitResponse ,
12+ } from "./controller" ;
513
614export const formResponseRoutes = new Elysia ( { prefix : "/responses" } )
715 . use ( requireAuth )
816 . post ( "/:formId" , submitResponse , formResponseDTO )
9- . put ( "/resume/:responseId" , resumeResponse , resumeResponseDTO ) ;
17+ . put ( "/resume/:responseId" , resumeResponse , resumeResponseDTO )
18+ . get (
19+ "/responses/:formId" ,
20+ getResponseForFormOwner ,
21+ formResponseForFormOwnerDTO ,
22+ ) ;
You can’t perform that action at this time.
0 commit comments