ethan.chen
56d9736597
添加媒体统计接口 /api/media/stats
...
Deploy to Server / deploy (push) Successful in 5s
- 返回媒体总数、满分作品数、平均评分
- 按类型统计各类型作品数量
- 返回最新添加的5部作品
- 便于前端展示数据统计信息
2026-01-09 10:30:40 +08:00
ethan.chen
b33ac37720
修复 page 接口返回的 date 字段格式
...
- 格式化 date 字段,只返回日期部分(YYYY-MM-DD),移除时间信息
2026-01-08 18:00:19 +08:00
ethan.chen
2b5b2f1d97
迁移数据库从 SQLite 到 PostgreSQL
...
- 更新 deno.json 添加 postgres 依赖
- 重构 db/index.ts 使用 PostgreSQL 连接和适配器
- 更新所有路由文件支持异步数据库操作
- 将 SQLite 语法转换为 PostgreSQL 语法
- 添加数据库迁移文档和 schema 文件
2026-01-08 14:26:27 +08:00
ethan.chen
32f7b86f28
feat: implement authentication middleware and routes
...
- Added `auth.ts` for JWT authentication middleware.
- Created `auth` route to handle authentication and token verification.
- Integrated authentication middleware into `media.ts` for protected routes.
- Updated `main.ts` to register the new authentication route.
2025-06-23 16:57:22 +08:00
ethan.chen
499321a842
chore: add .gitignore, remove VSCode settings, and optimize database queries
2025-06-13 14:42:57 +08:00
ethan.chen
c60fde3321
init: 初始化
2025-06-13 13:56:26 +08:00