diff --git a/app.vue b/app.vue index bb9be4a..efeb8c8 100644 --- a/app.vue +++ b/app.vue @@ -1,26 +1,34 @@ - - diff --git a/libs/apiTypes.ts b/libs/apiTypes.ts index bcc86a6..bd14d46 100644 --- a/libs/apiTypes.ts +++ b/libs/apiTypes.ts @@ -5,24 +5,6 @@ export interface User { projects: string[] } -export function getUser(apiEndpoint: string): Promise { - return fetch(`${apiEndpoint}/users/me`, { - credentials: 'include', - }).then((data) => { - if (data.ok) { - return data.json() as unknown as User - } - else if (data.status === 404) { - return null - } - else { - return Promise.reject( - new Error([data.url, data.status, data.statusText].join(' ')), - ) - } - }) -} - export function userLogout(apiEndpoint: string): Promise { return fetch(`${apiEndpoint}/../../../users`, { method: 'DELETE', diff --git a/pages/index.vue b/pages/index.vue index 31e9caa..fd1b4c2 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,25 +1,19 @@