Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

feat(auth): 现在可以使用账号密码登录仪表盘

Timothy Yinacbcde0d636d
diff --git a/.vscode/settings.json b/.vscode/settings.json
index d72e2920..8df6b11e 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -20,7 +20,7 @@
"i18n",
"i18n/locales"
],
- "i18n-ally.sourceLanguage": "en",
+ "i18n-ally.sourceLanguage": "zh-Hans",
"i18n-ally.keystyle": "nested",
"i18n-ally.extract.autoDetect": true,
"i18n-ally.extract.ignoredByFiles": {
diff --git a/README.md b/README.md
index 7f53f5c3..21ba38ce 100644
--- a/README.md
+++ b/README.md
@@ -156,6 +156,23 @@ docker-compose up -d
| NUXT_OAUTH_GITHUB_CLIENT_SECRET | GitHub OAuth app Client Secret | None | Yes |
| NUXT_SESSION_PASSWORD | Session encryption password (32 chars) | None | Yes |
+## 📖 User Guide
+
+> If `CFRAME_ADMIN_EMAIL` and `CFRAME_ADMIN_PASSWORD` are not set, the default admin account is:
+> - Email: `[email protected]`
+> - Password: `CF1234@!`
+
+### Logging into the Dashboard
+
+1. Click avatar to sign in with GitHub OAuth or use email/password login
+
+### Uploading Photos
+
+1. Go to the dashboard at /dashboard
+2. On the Photos page, select and upload images (supports batch & drag-and-drop)
+3. System will automatically parse EXIF data, generate thumbnails, and perform reverse geocoding
+
+
## 📸 Screenshots
![Gallery](./docs/images/screenshot1.png)
@@ -242,16 +259,6 @@ pnpm db:migrate # Run migrations
# Preview production build
pnpm preview
```
-
-## 📖 User Guide
-
-### Uploading Photos
-
-1. Click avatar to sign in with GitHub OAuth
-2. Go to the dashboard at /dashboard
-3. On the Photos page, select and upload images (supports batch & drag-and-drop)
-4. System will automatically parse EXIF data, generate thumbnails, and perform reverse geocoding
-
## 🤝 Contributing
Contributions are welcome! Please:
diff --git a/README_zh.md b/README_zh.md
index 187ea43e..a2bf3d40 100644
--- a/README_zh.md
+++ b/README_zh.md
@@ -157,6 +157,20 @@ docker-compose up -d
| NUXT_OAUTH_GITHUB_CLIENT_SECRET | GitHub OAuth 应用的 Client Secret | 无 | 是 |
| NUXT_SESSION_PASSWORD | 用于加密会话的密码,32 位随机字符串 | 无 | 是 |
+## 📖 使用指南
+
+> 如未配置 `CFRAME_ADMIN_EMAIL` 和 `CFRAME_ADMIN_PASSWORD`,默认账号如下:
+> - 邮箱: `[email protected]`
+> - 密码: `CF1234@!`
+
+### 登录到控制台
+1. 点击头像跳转到登录页面,可以使用账号密码或 GitHub 登录
+
+### 上传照片
+1. 访问仪表板页面 `/dashboard`
+2. 在 `Photos` 页面中选择图片并点击上传(支持批量上传和拖拽上传)
+3. 系统将自动提取 EXIF 信息、生成缩略图并逆编码照片地理位置
+
## 📸 截图
![Gallery](./docs/images/screenshot1.png)
@@ -246,15 +260,6 @@ pnpm db:migrate # 执行迁移
pnpm preview
```
-## 📖 使用指南
-
-### 上传照片
-
-1. 点击头像跳转到 GitHub 认证登录
-2. 访问仪表板页面 `/dashboard`
-3. 在 `Photos` 页面中选择图片并点击上传(支持批量上传和拖拽上传)
-4. 系统将自动提取 EXIF 信息、生成缩略图并逆编码照片地理位置
-
## 🤝 贡献
欢迎贡献代码!请确保:
diff --git a/app/components/masonry/HeaderItem.vue b/app/components/masonry/HeaderItem.vue
index fbb880e9..c7305840 100644
--- a/app/components/masonry/HeaderItem.vue
+++ b/app/components/masonry/HeaderItem.vue
@@ -12,6 +12,7 @@ defineProps<{
dateRangeText: string
}>()
+const router = useRouter()
const config = useRuntimeConfig()
const colorMode = useColorMode()
@@ -25,8 +26,7 @@ const isDark = computed({
})
const handleOpenLogin = () => {
- window.location.href = '/api/auth/github'
- console.log('Login button clicked')
+ router.push('/signin')
}
// 获取筛选状态
diff --git a/app/components/ui/AuthForm.vue b/app/components/ui/AuthForm.vue
new file mode 100644
index 00000000..de8d2274
--- /dev/null
+++ b/app/components/ui/AuthForm.vue
@@ -0,0 +1,138 @@
+<script lang="ts" setup>
+import { z } from 'zod'
+import type { ButtonProps, FormSubmitEvent } from '@nuxt/ui'
+import { twMerge } from 'tailwind-merge'
+
+defineProps<{
+ icon?: string
+ title?: string
+ subtitle?: string
+ providers?: Array<ButtonProps>
+ class?: string
+ loading?: boolean
+}>()
+
+const emit = defineEmits<{
+ submit: [event: FormSubmitEvent<Schema>]
+}>()
+
+const schema = z.object({
+ email: z.email($t('auth.form.errors.invalidEmail')),
+ password: z.string().min(6, $t('auth.form.errors.invalidPassword')),
+})
+
+type Schema = z.output<typeof schema>
+
+const state = reactive<Partial<Schema>>({
+ email: undefined,
+ password: '',
+})
+
+const onSubmit = async (event: FormSubmitEvent<Schema>) => {
+ emit('submit', event)
+}
+</script>
+
+<template>
+ <div :class="twMerge('w-full space-y-6 max-w-sm', $props.class)">
+ <UButton
+ type="button"
+ variant="link"
+ color="neutral"
+ icon="tabler:arrow-left"
+ size="xs"
+ to="/"
+ >
+ {{ $t('auth.form.action.backToHome') }}
+ </UButton>
+ <!-- Header -->
+ <div class="flex flex-col items-center">
+ <!-- Icon -->
+ <div
+ v-if="icon"
+ class="mb-2"
+ >
+ <Icon
+ :name="icon"
+ class="size-8 inline-block shrink-0"
+ />
+ </div>
+ <!-- Title -->
+ <div
+ v-if="title"
+ class="text-2xl font-medium text-highlighted text-pretty"
+ >
+ {{ title }}
+ </div>
+ <!-- Subtitle -->
+ <div
+ v-if="subtitle"
+ class="mt-1 text-sm text-muted text-pretty"
+ >
+ {{ subtitle }}
+ </div>
+ </div>
+ <div class="flex flex-col gap-4">
+ <div
+ v-if="providers && providers.length > 0"
+ :class="providers.length > 3 ? 'space-y-2' : 'flex items-center gap-2'"
+ >
+ <UButton
+ v-for="provider in providers"
+ :key="provider.icon"
+ v-bind="provider"
+ :loading="loading"
+ />
+ </div>
+ <USeparator
+ v-if="providers && providers.length > 0"
+ :label="$t('auth.form.action.or')"
+ />
+ <UForm
+ class="space-y-4"
+ :schema="schema"
+ :state="state"
+ :disabled="loading"
+ @submit="onSubmit"
+ >
+ <UFormField
+ :label="$t('auth.form.labels.email')"
+ name="email"
+ >
+ <UInput
+ v-model="state.email"
+ :autofocus="false"
+ class="w-full"
+ />
+ </UFormField>
+
+ <UFormField
+ :label="$t('auth.form.labels.password')"
+ name="password"
+ >
+ <UInput
+ v-model="state.password"
+ :autofocus="false"
+ type="password"
+ class="w-full"
+ />
+ </UFormField>
+
+ <div class="flex flex-col gap-2">
+ <UButton
+ type="submit"
+ variant="soft"
+ color="info"
+ trailing-icon="tabler:login-2"
+ block
+ :loading="loading"
+ >
+ {{ $t('auth.form.action.continue') }}
+ </UButton>
+ </div>
+ </UForm>
+ </div>
+ </div>
+</template>
+
+<style scoped></style>
diff --git a/app/layouts/dashboard.vue b/app/layouts/dashboard.vue
index bf1db1d9..9637742a 100644
--- a/app/layouts/dashboard.vue
+++ b/app/layouts/dashboard.vue
@@ -28,6 +28,7 @@ useHead({
})
const route = useRoute()
+const router = useRouter()
const config = useRuntimeConfig()
const { loggedIn, user } = useUserSession()
@@ -39,7 +40,10 @@ const isRouteActive = (itemPath: string) => {
}
const handleLogin = () => {
- window.location.href = '/api/auth/github'
+ router.push({
+ path: '/signin',
+ query: { redirect: route.fullPath },
+ })
}
const toggleMobileMenu = () => {
@@ -108,53 +112,53 @@ const closeMobileMenu = () => {
<!-- 移动端下拉菜单 -->
<AnimatePresence>
<motion.div
- v-if="isMobileMenuOpen"
- :initial="{ opacity: 0, y: -10, height: 0 }"
- :animate="{ opacity: 1, y: 0, height: 'auto' }"
- :exit="{ opacity: 0, y: -10, height: 0 }"
- :transition="{
- duration: 0.3,
- ease: 'easeOut',
- height: { duration: 0.2 }
- }"
- class="border-t border-default bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 overflow-hidden"
- >
- <nav class="py-2">
- <motion.div
- v-for="(item, index) in items"
- :key="index"
- :initial="{ opacity: 0, x: -20 }"
- :animate="{ opacity: 1, x: 0 }"
- :transition="{
- duration: 0.2,
- delay: index * 0.06,
- ease: 'easeOut'
- }"
- >
- <NuxtLink
- :to="item.to"
- :class="[
- 'flex items-center gap-3 px-4 py-3 text-sm font-medium transition-colors',
- isRouteActive(item.to as string)
- ? 'bg-primary/10 text-primary border-r-2 border-primary'
- : 'hover:bg-gray-100 dark:hover:bg-gray-800 text-gray-700 dark:text-gray-300'
- ]"
- @click="closeMobileMenu"
+ v-if="isMobileMenuOpen"
+ :initial="{ opacity: 0, y: -10, height: 0 }"
+ :animate="{ opacity: 1, y: 0, height: 'auto' }"
+ :exit="{ opacity: 0, y: -10, height: 0 }"
+ :transition="{
+ duration: 0.3,
+ ease: 'easeOut',
+ height: { duration: 0.2 },
+ }"
+ class="border-t border-default bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 overflow-hidden"
+ >
+ <nav class="py-2">
+ <motion.div
+ v-for="(item, index) in items"
+ :key="index"
+ :initial="{ opacity: 0, x: -20 }"
+ :animate="{ opacity: 1, x: 0 }"
+ :transition="{
+ duration: 0.2,
+ delay: index * 0.06,
+ ease: 'easeOut',
+ }"
>
- <Icon
- :name="item.icon!"
+ <NuxtLink
+ :to="item.to"
:class="[
- 'size-5',
+ 'flex items-center gap-3 px-4 py-3 text-sm font-medium transition-colors',
isRouteActive(item.to as string)
- ? 'text-primary'
- : 'text-gray-500'
+ ? 'bg-primary/10 text-primary border-r-2 border-primary'
+ : 'hover:bg-gray-100 dark:hover:bg-gray-800 text-gray-700 dark:text-gray-300',
]"
- />
- <span>{{ item.label }}</span>
- </NuxtLink>
- </motion.div>
- </nav>
- </motion.div>
+ @click="closeMobileMenu"
+ >
+ <Icon
+ :name="item.icon!"
+ :class="[
+ 'size-5',
+ isRouteActive(item.to as string)
+ ? 'text-primary'
+ : 'text-gray-500',
+ ]"
+ />
+ <span>{{ item.label }}</span>
+ </NuxtLink>
+ </motion.div>
+ </nav>
+ </motion.div>
</AnimatePresence>
</div>
</header>
@@ -176,7 +180,7 @@ const closeMobileMenu = () => {
: 'Sorry, you do not have access to this page.'
}}
</p>
- <UButton @click="handleLogin">Login with GitHub</UButton>
+ <UButton @click="handleLogin">Sign In</UButton>
</div>
</div>
</template>
diff --git a/app/pages/signin.vue b/app/pages/signin.vue
new file mode 100644
index 00000000..6a4cb5e8
--- /dev/null
+++ b/app/pages/signin.vue
@@ -0,0 +1,65 @@
+<script lang="ts" setup>
+useHead({
+ title: 'Sign In',
+})
+
+const { fetch: fetchUserSession } = useUserSession()
+const toast = useToast()
+const route = useRoute()
+const router = useRouter()
+
+const isLoading = ref(false)
+
+const onAuthSubmit = async (event: any) => {
+ isLoading.value = true
+ await $fetch('/api/login', {
+ method: 'POST',
+ body: event.data,
+ })
+ .then(async () => {
+ await fetchUserSession()
+ router.push(route.query.redirect?.toString() || '/')
+ })
+ .catch((error) => {
+ console.error('Login error:', error)
+ toast.add({
+ color: 'error',
+ title: 'Login Failed',
+ description:
+ error?.data?.message ||
+ 'An unexpected error occurred. Please try again.',
+ })
+ })
+ .finally(() => {
+ isLoading.value = false
+ })
+}
+</script>
+
+<template>
+ <div
+ class="w-full min-h-svh flex flex-col items-center justify-center p-4 pb-12"
+ >
+ <UiAuthForm
+ icon="tabler:photo-circle"
+ :title="$t('auth.form.signin.title')"
+ :subtitle="$t('auth.form.signin.subtitle')"
+ :loading="isLoading"
+ :providers="[
+ {
+ icon: 'tabler:brand-github',
+ size: 'lg',
+ color: 'neutral',
+ variant: 'subtle',
+ block: true,
+ label: 'GitHub',
+ to: '/api/auth/github',
+ external: true,
+ },
+ ]"
+ @submit="onAuthSubmit"
+ />
+ </div>
+</template>
+
+<style scoped></style>
diff --git a/i18n/locales/en.json b/i18n/locales/en.json
index 2792e304..1853439c 100644
--- a/i18n/locales/en.json
+++ b/i18n/locales/en.json
@@ -244,5 +244,26 @@
"dashboard": "Dashboard",
"photos": "Photos",
"locations": "Locations"
+ },
+ "auth": {
+ "form": {
+ "errors": {
+ "invalidEmail": "Invalid email address",
+ "invalidPassword": ""
+ },
+ "signin": {
+ "title": "Sign In",
+ "subtitle": "Log in to ChronoFrame"
+ },
+ "action": {
+ "backToHome": "Back to Home",
+ "or": "OR",
+ "continue": "Continue"
+ },
+ "labels": {
+ "email": "Email",
+ "password": "Password"
+ }
+ }
}
}
diff --git a/i18n/locales/ja.json b/i18n/locales/ja.json
index 06bbbd25..7fc76dbf 100644
--- a/i18n/locales/ja.json
+++ b/i18n/locales/ja.json
@@ -244,5 +244,21 @@
"dashboard": "ダッシュボード",
"photos": "写真",
"locations": "場所"
+ },
+ "auth": {
+ "form": {
+ "signin": {
+ "title": "サインイン",
+ "subtitle": "ChronoFrame にログインします"
+ },
+ "action": {
+ "or": "または",
+ "continue": "続く"
+ },
+ "labels": {
+ "email": "メール",
+ "password": "パスワード"
+ }
+ }
}
}
diff --git a/i18n/locales/zh-Hans.json b/i18n/locales/zh-Hans.json
index 64e06d76..4ec2c953 100644
--- a/i18n/locales/zh-Hans.json
+++ b/i18n/locales/zh-Hans.json
@@ -244,5 +244,26 @@
"gallery": "相册",
"locations": "位置管理",
"photos": "照片库"
+ },
+ "auth": {
+ "form": {
+ "errors": {
+ "invalidEmail": "无效的电子邮件地址",
+ "invalidPassword": "密码至少需要6个字符"
+ },
+ "action": {
+ "backToHome": "回到首页",
+ "or": "或",
+ "continue": "继续"
+ },
+ "signin": {
+ "title": "登入",
+ "subtitle": "登录到 ChronoFrame"
+ },
+ "labels": {
+ "email": "电子邮箱",
+ "password": "密码"
+ }
+ }
}
}
diff --git a/i18n/locales/zh-Hant-HK.json b/i18n/locales/zh-Hant-HK.json
index 8aadf86e..8225e4f8 100644
--- a/i18n/locales/zh-Hant-HK.json
+++ b/i18n/locales/zh-Hant-HK.json
@@ -244,5 +244,21 @@
"locations": "位置管理",
"photos": "相片庫",
"gallery": "相片集"
+ },
+ "auth": {
+ "form": {
+ "signin": {
+ "title": "登入",
+ "subtitle": "登錄到 ChronoFrame"
+ },
+ "action": {
+ "or": "或",
+ "continue": "繼續"
+ },
+ "labels": {
+ "email": "電子郵箱",
+ "password": "密碼"
+ }
+ }
}
}
diff --git a/i18n/locales/zh-Hant-TW.json b/i18n/locales/zh-Hant-TW.json
index 88abee6e..29d06b50 100644
--- a/i18n/locales/zh-Hant-TW.json
+++ b/i18n/locales/zh-Hant-TW.json
@@ -244,5 +244,21 @@
"locations": "位置管理",
"photos": "相片庫",
"gallery": "相片集"
+ },
+ "auth": {
+ "form": {
+ "signin": {
+ "title": "登入",
+ "subtitle": "登錄到 ChronoFrame"
+ },
+ "action": {
+ "or": "或",
+ "continue": "繼續"
+ },
+ "labels": {
+ "email": "電子郵箱",
+ "password": "密碼"
+ }
+ }
}
}
diff --git a/package.json b/package.json
index 2520fa4b..fcc5adf4 100644
--- a/package.json
+++ b/package.json
@@ -61,7 +61,8 @@
"vue": "^3.5.18",
"vue-router": "^4.5.1",
"wait-on": "^8.0.4",
- "wrangler": "^4.32.0"
+ "wrangler": "^4.32.0",
+ "zod": "^4.1.11"
},
"packageManager": "[email protected]+sha512.1f79bc245a66eb0b07c5d4d83131240774642caaa86ef7d0434ab47c0d16f66b04e21e0c086eb61e62c77efc4d7f7ec071afad3796af64892fae66509173893a",
"devDependencies": {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 11954ccb..d568f88a 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -28,7 +28,7 @@ importers:
'@nuxt/ui':
specifier: ^3.3.2
'@nuxthub/core':
specifier: 0.9.0
@@ -122,6 +122,9 @@ importers:
wrangler:
specifier: ^4.32.0
version: 4.32.0(@cloudflare/[email protected])
+ zod:
+ specifier: ^4.1.11
+ version: 4.1.11
devDependencies:
'@iconify-json/carbon':
specifier: ^1.2.13
@@ -3626,9 +3629,6 @@ packages:
resolution: {integrity: sha512-IhXCOn08wgKrLQxRFKKlSacWg4Goi1BolrdEeLYn6tgHjJNXVrWJ5nzoxZqNwl5p88aLlQ8LOaoMa3AYvaKJ/Q==}
- resolution: {integrity: sha512-SoRGP596KU/ig6TfgkCMbXkr4YJ91n/QSdMuqeP5r3hVIYA3CPHUBCc7Skak0EAKV+5lL4KyIh61VA/pK1CIAA==}
-
resolution: {integrity: sha512-+2k1EQpnYuVuu3N7atWyG3/xoFWIVJZq4Mz8XNOdScFI0etES75fbny/oU4lKWk/577P1zmg0ioYvpGEDZ3DLw==}
@@ -8100,6 +8100,9 @@ packages:
resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==}
+ resolution: {integrity: sha512-WPsqwxITS2tzx1bzhIKsEs19ABD5vmCVa4xBo2tq/SrV4RNZtfws1EnCWQXM6yh8bD08a1idvkB5MZSBiZsjwg==}
+
snapshots:
'@adonisjs/[email protected]':
@@ -10403,7 +10406,7 @@ snapshots:
- magicast
- typescript
dependencies:
'@iconify/vue': 5.0.0([email protected]([email protected]))
'@internationalized/date': 3.8.2
@@ -10452,7 +10455,7 @@ snapshots:
optionalDependencies:
joi: 17.13.3
- zod: 3.25.76
+ zod: 4.1.11
transitivePeerDependencies:
- '@azure/app-configuration'
- '@azure/cosmos'
@@ -12211,7 +12214,7 @@ snapshots:
'@volar/language-core': 2.4.15
'@vue/compiler-dom': 3.5.21
'@vue/compiler-vue2': 2.7.16
- '@vue/shared': 3.5.20
+ '@vue/shared': 3.5.21
alien-signals: 1.0.13
minimatch: 9.0.5
muggle-string: 0.4.1
@@ -12256,8 +12259,6 @@ snapshots:
'@vue/[email protected]': {}
- '@vue/[email protected]': {}
-
'@vue/[email protected]': {}
@@ -17243,3 +17244,5 @@ snapshots:
+
diff --git a/server/api/auth/github.get.ts b/server/api/auth/github.get.ts
index 7b60ffe2..629009fd 100644
--- a/server/api/auth/github.get.ts
+++ b/server/api/auth/github.get.ts
@@ -1,6 +1,13 @@
+const _accessDeniedError = createError({
+ statusCode: 403,
+ statusMessage:
+ 'Access denied. Please contact the administrator to activate your account.',
+})
+
export default defineOAuthGitHubEventHandler({
async onSuccess(event, { user }) {
- const userFromEmail = await useDB()
+ const db = useDB()
+ const userFromEmail = db
.select()
.from(tables.users)
.where(eq(tables.users.email, user.email || ''))
@@ -14,8 +21,7 @@ export default defineOAuthGitHubEventHandler({
if (!userFromEmail) {
// create a new user without admin permission
- await useDB()
- .insert(tables.users)
+ db.insert(tables.users)
.values({
username: user.name || '',
email: user.email || '',
@@ -25,26 +31,19 @@ export default defineOAuthGitHubEventHandler({
.returning()
.get()
// then reject login
- throw createError({
- statusCode: 403,
- statusMessage:
- 'Access denied. Please contact the administrator to activate your account.',
- })
+ throw _accessDeniedError
} else if (userFromEmail.isAdmin === 0) {
- throw createError({
- statusCode: 403,
- statusMessage:
- 'Access denied. Please contact the administrator to activate your account.',
- })
+ throw _accessDeniedError
} else {
await setUserSession(event, { user: userFromEmail })
}
return sendRedirect(event, '/')
},
- onError(_event) {
+ onError(event, error) {
+ logger.chrono.warn('GitHub OAuth login failed', error)
throw createError({
statusCode: 401,
- statusMessage: 'Authentication failed',
+ statusMessage: `Authentication failed: ${error.message || 'Unknown error'}`,
})
},
})
diff --git a/server/api/login.post.ts b/server/api/login.post.ts
new file mode 100644
index 00000000..ff9ac84a
--- /dev/null
+++ b/server/api/login.post.ts
@@ -0,0 +1,35 @@
+import { z } from 'zod'
+
+const _invalidCredentialsError = createError({
+ statusCode: 401,
+ message: 'Invalid credentials',
+})
+
+export default eventHandler(async (event) => {
+ const db = useDB()
+ const { email, password } = await readValidatedBody(
+ event,
+ z.object({
+ email: z.email(),
+ password: z.string().min(6),
+ }).parse,
+ )
+
+ const user = db
+ .select()
+ .from(tables.users)
+ .where(eq(tables.users.email, email))
+ .get()
+
+ if (!user) {
+ throw _invalidCredentialsError
+ }
+
+ if (!(await verifyPassword(user.password || '', password))) {
+ throw _invalidCredentialsError
+ }
+
+ await setUserSession(event, { user })
+
+ return setResponseStatus(event, 201)
+})
diff --git a/server/api/auth/logout.get.ts b/server/api/logout.get.ts
similarity index 100%
rename from server/api/auth/logout.get.ts
rename to server/api/logout.get.ts
diff --git a/server/api/auth/profile.get.ts b/server/api/profile.get.ts
similarity index 100%
rename from server/api/auth/profile.get.ts
rename to server/api/profile.get.ts