mirror of
https://github.com/stonith404/pingvin-share.git
synced 2024-11-19 05:40:12 +01:00
12 lines
228 B
TypeScript
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;
|