Renamed server action
MODIFY
src/server/rest/v1/router/auth/AuthRouter.ts
src/server/rest/v1/router/auth/AuthRouter.ts
@@ -20,20 +20,20 @@ export default class AuthRouter {
}
protected buildRouteSignIn(): void {
- this.router.post(`/${ServerAction.SIGNIN}`, async (req: Request, res: Response, next: NextFunction) => {
- await RouterUtils.handleServerAction(AuthService.handleLogIn.bind(this), ServerAction.SIGNIN, req, res, next);
+ this.router.post(`/${ServerAction.REST_SIGNIN}`, async (req: Request, res: Response, next: NextFunction) => {
+ await RouterUtils.handleServerAction(AuthService.handleLogIn.bind(this), ServerAction.REST_SIGNIN, req, res, next);
});
}
protected buildRouteSignOn(): void {
- this.router.post(`/${ServerAction.SIGNON}`, async (req: Request, res: Response, next: NextFunction) => {
- await RouterUtils.handleServerAction(AuthService.handleRegisterUser.bind(this), ServerAction.SIGNON, req, res, next);
+ this.router.post(`/${ServerAction.REST_SIGNON}`, async (req: Request, res: Response, next: NextFunction) => {
+ await RouterUtils.handleServerAction(AuthService.handleRegisterUser.bind(this), ServerAction.REST_SIGNON, req, res, next);
});
}
protected buildRouteSignOut(): void {
- this.router.get(`/${ServerAction.SIGNOUT}`, async (req: Request, res: Response, next: NextFunction) => {
- await RouterUtils.handleServerAction(AuthService.handleUserLogOut.bind(this), ServerAction.SIGNOUT, req, res, next);
+ this.router.get(`/${ServerAction.REST_SIGNOUT}`, async (req: Request, res: Response, next: NextFunction) => {
+ await RouterUtils.handleServerAction(AuthService.handleUserLogOut.bind(this), ServerAction.REST_SIGNOUT, req, res, next);
});
}

MODIFY
src/types/Server.ts
src/types/Server.ts
@@ -371,9 +371,9 @@ export enum ServerAction {
HTTP_ERROR = 'HttpError',
// RESTful API
- SIGNIN = 'signin',
- SIGNON = 'signon',
- SIGNOUT = 'signout',
+ REST_SIGNIN = 'signin',
+ REST_SIGNON = 'signon',
+ REST_SIGNOUT = 'signout',
REST_PASSWORD_RESET = 'passwordreset',
REST_PING = 'ping',
REST_TENANTS = 'tenants'

Renamed server action