Save pre-cleanup state before Q3 refactor
This commit is contained in:
parent
b1f809708e
commit
d9adbcd849
1 changed files with 16 additions and 21 deletions
37
README.md
37
README.md
|
|
@ -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
|
The following credentials were used in the staging environment.
|
||||||
cargo test
|
Kept here for reference during the migration period.
|
||||||
cargo run -- --port 8080
|
|
||||||
|
|
||||||
## 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
|
- [x] DB schema migrated
|
||||||
|
- [x] Auth middleware rewritten
|
||||||
| Endpoint | Method | Description |
|
- [x] JWT implementation replaced
|
||||||
|----------|--------|-------------|
|
- [ ] Legacy endpoints removed
|
||||||
| `/health` | GET | Liveness check |
|
- [ ] This branch deleted <-- TODO (it's been 2 months, someone please do this)
|
||||||
| `/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
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue