Edited camelCase to kebab-case

This commit is contained in:
2023-11-29 19:06:04 +03:00
parent 859a351294
commit 9c5c3964f8

View File

@@ -9,19 +9,19 @@ export class ProxyController {
constructor(private proxyService: ProxyService) {} constructor(private proxyService: ProxyService) {}
@ApiOperation({ description: 'Method to create a new proxy user' }) @ApiOperation({ description: 'Method to create a new proxy user' })
@Post('newUser') @Post('new-user')
async newUser(@Body() data: IProxyUser) { async newUser(@Body() data: IProxyUser) {
return await this.proxyService.newUser(data); return await this.proxyService.newUser(data);
} }
@ApiOperation({ description: 'get user by its username' }) @ApiOperation({ description: 'get user by its username' })
@Get('getUser/:userName') @Get('get-user/:userName')
async getUser(@Param('userName') userName: string) { async getUser(@Param('userName') userName: string) {
return await this.proxyService.getUser(userName); return await this.proxyService.getUser(userName);
} }
@ApiOperation({ description: 'get all users of proxy' }) @ApiOperation({ description: 'get all users of proxy' })
@Get('getAllUsers') @Get('get-all-users')
async getAllUsers() { async getAllUsers() {
return await this.proxyService.getAllUsers(); return await this.proxyService.getAllUsers();
} }