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) {}
@ApiOperation({ description: 'Method to create a new proxy user' })
@Post('newUser')
@Post('new-user')
async newUser(@Body() data: IProxyUser) {
return await this.proxyService.newUser(data);
}
@ApiOperation({ description: 'get user by its username' })
@Get('getUser/:userName')
@Get('get-user/:userName')
async getUser(@Param('userName') userName: string) {
return await this.proxyService.getUser(userName);
}
@ApiOperation({ description: 'get all users of proxy' })
@Get('getAllUsers')
@Get('get-all-users')
async getAllUsers() {
return await this.proxyService.getAllUsers();
}