diff options
| author | diogo464 <[email protected]> | 2025-08-13 16:34:34 +0100 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2025-08-13 16:34:34 +0100 |
| commit | 817d5696ec6dfe7679467f05619d58b8d741230d (patch) | |
| tree | 24a2cb10369eaa6660773bfa2a7bb1b29bd9c9d2 /frontend/app/api | |
| parent | fe27e88eff20b342ba54e8df34ee962d62233552 (diff) | |
refactor: split auth module into separate files and fix imports
- Created auth_types.ts for type definitions
- Created auth_shared.ts for utility functions and endpoints
- Updated auth.ts to focus on session management
- Fixed all auth import statements throughout codebase
- Updated login redirect to use Auth_tinyauth_public_endpoint properly
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
Diffstat (limited to 'frontend/app/api')
| -rw-r--r-- | frontend/app/api/upload/route.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/app/api/upload/route.ts b/frontend/app/api/upload/route.ts index 07ab908..5ce0640 100644 --- a/frontend/app/api/upload/route.ts +++ b/frontend/app/api/upload/route.ts | |||
| @@ -3,7 +3,8 @@ import { writeFile, unlink } from 'fs/promises' | |||
| 3 | import { tmpdir } from 'os' | 3 | import { tmpdir } from 'os' |
| 4 | import { join } from 'path' | 4 | import { join } from 'path' |
| 5 | import { randomUUID } from 'crypto' | 5 | import { randomUUID } from 'crypto' |
| 6 | import { Auth_get_user, Auth_user_can_upload } from '@/lib/auth' | 6 | import { Auth_get_user } from '@/lib/auth' |
| 7 | import { Auth_user_can_upload } from '@/lib/auth_shared' | ||
| 7 | import { Drive_import } from '@/lib/drive_server' | 8 | import { Drive_import } from '@/lib/drive_server' |
| 8 | import { UPLOAD_MAX_FILE_SIZE } from '@/lib/constants' | 9 | import { UPLOAD_MAX_FILE_SIZE } from '@/lib/constants' |
| 9 | 10 | ||
