diff --git a/crates/frontend/src/api-client.ts b/crates/frontend/src/api-client.ts new file mode 100644 index 0000000..c8cfa47 --- /dev/null +++ b/crates/frontend/src/api-client.ts @@ -0,0 +1,11 @@ +import axios, { type AxiosInstance } from "axios"; + +const api_client: AxiosInstance = axios.create({ + baseURL: import.meta.hot ? "http://localhost:54600/api/v1" : "/api/v1", + headers: { + "Content-Type": "application/json" + }, + withCredentials: true, +}); + +export default api_client; diff --git a/crates/frontend/src/components/Error.vue b/crates/frontend/src/components/Error.vue new file mode 100644 index 0000000..730c1af --- /dev/null +++ b/crates/frontend/src/components/Error.vue @@ -0,0 +1,5 @@ + diff --git a/crates/frontend/src/components/Login.vue b/crates/frontend/src/components/Login.vue index bfe7014..f99387a 100644 --- a/crates/frontend/src/components/Login.vue +++ b/crates/frontend/src/components/Login.vue @@ -1,30 +1,21 @@ diff --git a/crates/frontend/src/views/Error.vue b/crates/frontend/src/views/Error.vue new file mode 100644 index 0000000..c6e218b --- /dev/null +++ b/crates/frontend/src/views/Error.vue @@ -0,0 +1,10 @@ + + + diff --git a/crates/frontend/src/views/Me.vue b/crates/frontend/src/views/Me.vue deleted file mode 100644 index ef8d6dd..0000000 --- a/crates/frontend/src/views/Me.vue +++ /dev/null @@ -1,47 +0,0 @@ - - - diff --git a/crates/frontend/src/views/NotFound.vue b/crates/frontend/src/views/NotFound.vue deleted file mode 100644 index e69de29..0000000 diff --git a/crates/frontend/src/views/User.vue b/crates/frontend/src/views/User.vue new file mode 100644 index 0000000..35d8a7b --- /dev/null +++ b/crates/frontend/src/views/User.vue @@ -0,0 +1,54 @@ + + +