Skip to content

Commit

Permalink
feat: allow API role access to Xray config controller
Browse files Browse the repository at this point in the history
  • Loading branch information
kastov committed Feb 26, 2025
1 parent e914520 commit 528205b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@remnawave/backend",
"version": "1.3.2",
"version": "1.3.3",
"description": "Remnawave Panel Backend",
"private": false,
"type": "commonjs",
Expand Down
2 changes: 1 addition & 1 deletion src/modules/xray-config/xray-config.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { XrayConfigService } from './xray-config.service';

@ApiTags('Xray Config Controller')
@Controller(XRAY_CONTROLLER)
@Roles(ROLE.ADMIN)
@Roles(ROLE.ADMIN, ROLE.API)
@UseFilters(HttpExceptionFilter)
@UseGuards(JwtDefaultGuard, RolesGuard)
export class XrayConfigController {
Expand Down

0 comments on commit 528205b

Please sign in to comment.