Skip to content

Commit

Permalink
renamed endpoints
Browse files Browse the repository at this point in the history
set_autoload -> autoload
set_valid -> valid
profile_theme -> theme
  • Loading branch information
Andcool-Systems committed Nov 17, 2024
1 parent c11b061 commit 2e98879
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/user/user.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class UserController {
res.send(data);
}

@Put("/user/me/profile_theme")
@Put("/user/me/theme")
@Auth(AuthEnum.Strict)
@UsePipes(new ValidationPipe({ whitelist: true, transform: true }))
async profile_theme(
Expand All @@ -116,7 +116,7 @@ export class UserController {
})
}

@Put("/user/me/connections/minecraft/set_valid")
@Put("/user/me/connections/minecraft/valid")
@Auth(AuthEnum.Strict)
@UsePipes(new ValidationPipe({ whitelist: true, transform: true }))
async set_valid(
Expand All @@ -130,7 +130,7 @@ export class UserController {
res.status(data.statusCode).send(data);
}

@Put("/user/me/connections/minecraft/set_autoload")
@Put("/user/me/connections/minecraft/autoload")
@Auth(AuthEnum.Strict)
@UsePipes(new ValidationPipe({ whitelist: true, transform: true }))
async set_autoload(
Expand Down Expand Up @@ -244,7 +244,7 @@ export class UserController {
res.status(data.statusCode).send(data);
}

@Put("/user/me/settings/set_public")
@Put("/user/me/settings/public")
@Auth(AuthEnum.Strict)
@UsePipes(new ValidationPipe({ whitelist: true, transform: true }))
async set_public(
Expand Down

0 comments on commit 2e98879

Please sign in to comment.