feat(frontend): Added functionality to the frontend to log in.
This commit is contained in:
parent
4a1edbb6ff
commit
a28ec22f29
20 changed files with 395 additions and 33 deletions
10
frontend/src/services/api-client.ts
Normal file
10
frontend/src/services/api-client.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
import axios from "axios";
|
||||
|
||||
const apiClient = axios.create({
|
||||
baseURL: window.location.hostname == "localhost" ? "http://localhost:3000" : window.location.origin,
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
});
|
||||
|
||||
export default apiClient;
|
Loading…
Add table
Add a link
Reference in a new issue