deckhearth/api
Randall Stillwell f7735ba8d9 Add user promotion endpoint
🔧 Admin Management:
- Add api/admin/promote-user.js endpoint
- Allows promoting users to admin role by username or userId
- Checks for existing admin status
- Returns updated user info with roles
- Handles database errors gracefully

Usage: POST /api/admin/promote-user with { username: 'testuser' }
2025-07-22 07:08:09 -05:00
..
admin Add user promotion endpoint 2025-07-22 07:08:09 -05:00
auth Remove conflicting TypeScript API files 2025-07-22 06:55:09 -05:00
v1/cards Fix Node.js 18 compatibility for Vercel deployment 2025-07-21 16:08:45 -05:00
debug.js Add comprehensive debug endpoint to check environment variables 2025-07-22 06:53:36 -05:00
migrate.ts Fix Vercel ES module import issues 2025-07-21 16:12:24 -05:00
setup-auth.js Convert auth endpoints to working Vercel function format 2025-07-22 06:46:09 -05:00
simple.js Add environment variable debugging to simple endpoint 2025-07-22 06:52:30 -05:00
tsconfig.json Fix Vercel ES module import issues 2025-07-21 16:12:24 -05:00