1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-11-19 05:40:12 +01:00
pingvin-share/.setup/services/api.service.ts

12 lines
228 B
TypeScript
Raw Normal View History

2022-04-25 15:15:17 +02:00
import axios from "axios";
const api = () =>
axios.create({
2022-04-25 17:58:03 +02:00
baseURL: process.env["APPWRITE_HOST"],
2022-04-25 15:15:17 +02:00
headers: {
cookie: `a_session_console=${process.env["APPWRITE_USER_TOKEN"]}`,
},
});
export default api;