File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import asyncWrapper from '@utils/async-wrapper';
33import jwtAuthenticator from '@middlewares/jwt-authenticator' ;
44import * as workspaceService from './service' ;
55import { CREATED } from '@constants/http-status' ;
6- import { PostParams , PostJoinParams } from '@params/workspace' ;
6+ import { PostParams , PostJoinParams , GetInfoParams } from '@params/workspace' ;
77
88const router = express . Router ( ) ;
99
@@ -36,7 +36,7 @@ router.post(
3636router . get (
3737 '/:id' ,
3838 jwtAuthenticator ,
39- asyncWrapper ( async ( req : Request , res : Response ) => {
39+ asyncWrapper ( async ( req : Request < GetInfoParams > , res : Response ) => {
4040 const { id : workspaceId } = req . params ;
4141
4242 const workspaceInfo = await workspaceService . info ( Number ( workspaceId ) ) ;
Original file line number Diff line number Diff line change @@ -5,3 +5,7 @@ export interface PostParams {
55export interface PostJoinParams {
66 code : string ;
77}
8+
9+ export interface GetInfoParams {
10+ id : string ;
11+ }
You can’t perform that action at this time.
0 commit comments