Add favicon SVG with gradient background and letter "R"

This commit is contained in:
2025-12-30 21:04:47 +07:00
parent 29a25d6456
commit c91fab6122
21 changed files with 7510 additions and 70 deletions

View File

@@ -0,0 +1,3 @@
export default defineEventHandler(async () => {
return await fetchDownloadStats()
})

View File

@@ -0,0 +1,14 @@
export default defineEventHandler(async (event) => {
const platform = getRouterParam(event, 'platform') as 'ios' | 'android' | 'h5'
if (!['ios', 'android', 'h5'].includes(platform)) {
throw createError({
statusCode: 400,
message: 'Invalid platform',
})
}
await trackDownload(platform)
return { success: true }
})

View File

@@ -0,0 +1,5 @@
import { currentVersion } from '~/data/versions'
export default defineEventHandler(() => {
return currentVersion
})