openaire-library/login/utils/guardHelper.class.ts

20 lines
460 B
TypeScript
Raw Normal View History

import { Router} from '@angular/router';
// export class GuardHelper{
// constructor(private router: Router) {}
//
// redirect(url:string, errorCode:number, redirectUrl:string){
// this.router.navigate([url], { queryParams: { "errorCode": errorCode, "redirectUrl": redirectUrl } });
//
// }
//
// }
export class ErrorCodes {
public static NOT_LOGGIN:number =1;
public static NOT_ADMIN:number =2;
public static NOT_VALID:number =3;
}