mirror of
https://github.com/swissmakers/swiss-datashare.git
synced 2026-04-11 10:27:01 +02:00
initial commit
This commit is contained in:
11
.setup/services/api.service.ts
Normal file
11
.setup/services/api.service.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user