Refactoring
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { HttpInterceptorFn } from "@angular/common/http";
|
||||
|
||||
import { environment } from 'src/environments/environment';
|
||||
import { environment } from '@environments/environment';
|
||||
|
||||
export const apiInterceptor: HttpInterceptorFn = (req, next) => {
|
||||
const apiReq = req.clone({
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { inject } from "@angular/core";
|
||||
import { HttpInterceptorFn } from "@angular/common/http";
|
||||
import { JwtService } from "src/app/core/services/jwt.service";
|
||||
import { JwtService } from "@services/jwt.service";
|
||||
|
||||
export const tokenInterceptor: HttpInterceptorFn = (req, next) => {
|
||||
const token = inject(JwtService).getToken();
|
||||
|
||||
Reference in New Issue
Block a user