fix(security): add RolesGuard to doctors mutations and JwtAuthGuard to prescriptions upload
This commit is contained in:
1 parent
efb3c473c4
commit
11dd549c7c
2 files changed
+12
-3
No files matched your search
@@ -46,6 +46,8 @@ export class PrescriptionsController {
|
||||
private readonly mediaService: MediaService,
|
||||
) {}
|
||||
|
||||
@UseGuards(JwtAuthGuard)
|
||||
@ApiBearerAuth()
|
||||
@Post('upload')
|
||||
@ApiOperation({ summary: 'آپلود تصویر یا فایل نسخه دارویی توسط کاربر' })
|
||||
@UseInterceptors(
|
||||
@@ -72,6 +74,8 @@ export class PrescriptionsController {
|
||||
return { success: true, data };
|
||||
}
|
||||
|
||||
@UseGuards(JwtAuthGuard)
|
||||
@ApiBearerAuth()
|
||||
@Post()
|
||||
@ApiOperation({ summary: 'بارگذاری نسخه جدید توسط کاربر' })
|
||||
create(
|
||||
|
||||
Reference in new issue
Block a user