apps/api: change route */signin -> */login
This commit is contained in:
parent
5c2aacdb11
commit
bca8a64efd
@ -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);
|
||||
|
||||
@ -37,7 +37,7 @@ export class LdapController {
|
||||
}
|
||||
}
|
||||
|
||||
@Post('/signin')
|
||||
@Post('/login')
|
||||
@ApiResponse({
|
||||
status: HttpStatus.OK,
|
||||
})
|
||||
|
||||
@ -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, '') || '/') +
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user