apps/api: change route */signin -> */login

This commit is contained in:
vchikalkin 2023-11-02 12:46:22 +03:00
parent 5c2aacdb11
commit bca8a64efd
3 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ export class AccountController {
return this.accountService.delete(username);
}
@Post('/signin')
@Post('/login')
async login(@Body() credentials: Credentials, @Res() reply: FastifyReply) {
try {
const token = await this.accountService.login(credentials);

View File

@ -37,7 +37,7 @@ export class LdapController {
}
}
@Post('/signin')
@Post('/login')
@ApiResponse({
status: HttpStatus.OK,
})

View File

@ -23,7 +23,7 @@ export default function Form() {
const data = { login, password };
axios
.post('/signin', data)
.post('/login', data)
.then(() => {
const url =
(window.location.pathname.replace(APP_BASE_PATH, '') || '/') +