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
2022-04-25 17:58:03 +02:00

12 lines
228 B
TypeScript

import axios from "axios";
const api = () =>
axios.create({
baseURL: process.env["APPWRITE_HOST"],
headers: {
cookie: `a_session_console=${process.env["APPWRITE_USER_TOKEN"]}`,
},
});
export default api;