deckhearth/api
Randall Stillwell 08e2664a9a Fix admin users API endpoint
🔧 Convert TypeScript to JavaScript:
- Replace api/admin/users.ts with api/admin/users.js
- Use req, res pattern instead of NextRequest/NextResponse
- Fix req.headers.get() -> req.headers.authorization
- Use url.parse() for query parameters
- Support GET (list users), PUT (update), DELETE (deactivate)
- Proper admin authentication and error handling

Resolves: req.headers.get is not a function error
2025-07-22 07:36:37 -05:00
..
admin Fix admin users API endpoint 2025-07-22 07:36:37 -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
make-admin.js Add admin promotion options 2025-07-22 07:23:03 -05:00
migrate.ts Fix Vercel ES module import issues 2025-07-21 16:12:24 -05:00
promote-testuser.js Add simple test user promotion endpoint 2025-07-22 07:11:02 -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