diff --git a/components/dashboard/Nav.vue b/components/dashboard/Nav.vue index f3d418d..64fcd37 100644 --- a/components/dashboard/Nav.vue +++ b/components/dashboard/Nav.vue @@ -10,14 +10,15 @@ const route = useRoute() @update:model-value="navigateTo" > - - Analysis - Links + + Analysis + + diff --git a/server/api/link/create.post.ts b/server/api/link/create.post.ts index fa8e9cf..a52d703 100644 --- a/server/api/link/create.post.ts +++ b/server/api/link/create.post.ts @@ -12,6 +12,7 @@ export default eventHandler(async (event) => { statusText: 'Link already exists', }) } + else { const expiration = getExpiration(event, link.expiration) @@ -23,5 +24,6 @@ export default eventHandler(async (event) => { }) setResponseStatus(event, 201) return { link } + } })