Commit graph

1 commit

Author SHA1 Message Date
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