Files
edr-platform/apps/edr-passenger-web/portal/src/utils/api.ts
2026-06-02 19:14:34 +03:00

10 lines
320 B
TypeScript

import axios from "axios";
export const api = axios.create({
baseURL: process.env.NEXT_PUBLIC_API_URL || 'http://localhost:4000',
});
// TODO: integrate @edr/auth — add a request interceptor here that attaches
// the bearer token from the auth package and a response interceptor that
// triggers a refresh on 401.