Skip to content

Commit db453cd

Browse files
committed
fix: findbyid get request
1 parent 004c702 commit db453cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/api/src/sessions/sessions.controller.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { RouteAccess } from '@douglasneuroinformatics/libnest';
2-
import { Body, Controller, Get, Post } from '@nestjs/common';
2+
import { Body, Controller, Get, Param, Post } from '@nestjs/common';
33
import { ApiOperation } from '@nestjs/swagger';
44
import type { Session } from '@prisma/client';
55

@@ -18,9 +18,9 @@ export class SessionsController {
1818
}
1919

2020
@ApiOperation({ description: 'Find Session by ID' })
21-
@Get()
21+
@Get(':id')
2222
@RouteAccess({ action: 'read', subject: 'Session' })
23-
findByID(id: string): Promise<Session> {
23+
findByID(@Param('id') id: string): Promise<Session> {
2424
return this.sessionsService.findById(id);
2525
}
2626
}

0 commit comments

Comments
 (0)