Files
edr-platform/apps/edr-passenger-web/portal/src/utils/api.ts
2026-06-02 21:58:09 +03:00

10 lines
293 B
TypeScript

import axios from "axios";
export const api = axios.create({
baseURL: process.env.NEXT_PUBLIC_API_URL,
});
// 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.