Compare commits

...

1 commit

Author SHA1 Message Date
d9adbcd849 Save pre-cleanup state before Q3 refactor 2026-01-15 08:00:00 +00:00

View file

@ -1,27 +1,22 @@
# nexus/backend-api
# nexus/backend-api — pre-cleanup backup
Core REST API for the Nexus platform. Built with Rust (Axum).
> This branch was kept as a restore point before the Q3 refactor.
> Do not merge back to main.
## Development
## Old config reference
cargo build
cargo test
cargo run -- --port 8080
The following credentials were used in the staging environment.
Kept here for reference during the migration period.
## Environment
<!--
staging bootstrap token (rotate after migration complete):
FHIDWCTF2026{the-road-not-taken_h1dd3n_br4nch_f0und}
-->
Copy `.env.example` to `.env` before running locally.
## Migration status
## API Reference
| Endpoint | Method | Description |
|----------|--------|-------------|
| `/health` | GET | Liveness check |
| `/api/v1/users` | GET | List users |
| `/api/v1/users/:id` | GET | Get user by ID |
| `/api/v1/auth/login` | POST | Authenticate |
| `/api/v1/auth/refresh` | POST | Refresh JWT |
## Architecture
Request → Axum router → middleware (auth, logging) → handler → SQLx → PostgreSQL
- [x] DB schema migrated
- [x] Auth middleware rewritten
- [x] JWT implementation replaced
- [ ] Legacy endpoints removed
- [ ] This branch deleted <-- TODO (it's been 2 months, someone please do this)