🛂(app-desk) create fetchAPI
Create a fetch wrapper for the API calls, it will handle: - add correct basename on the api request - add Bearer automatically on the api request - logout automatically on 401 request
This commit is contained in:
3
src/frontend/apps/desk/jest.setup.ts
Normal file
3
src/frontend/apps/desk/jest.setup.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import * as dotenv from 'dotenv';
|
||||
|
||||
dotenv.config({ path: './.env.test' });
|
||||
Reference in New Issue
Block a user