- Client: auth API wrapper (api/auth.ts) + useAuth hook with localStorage persistence - Client: LoginPage/LoginForm with remember-me and loading states - Client: BlogPage with hero section, rainbow spotlight cursor effect, post list - Client: CSS rainbow gradient utilities for text/borders/backgrounds - Server: POST /api/web/login with username/password verification + token - Server: CORS extended to POST + Content-Type header - Server: auth.rs token issuer, serde dependency for JSON - Chore: gitignore Server/.vite Co-Authored-By: Claude <noreply@anthropic.com>
18 lines
369 B
TOML
18 lines
369 B
TOML
[package]
|
|
name = "server"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[[bin]]
|
|
name = "RustServer"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
axum = "0.8.9"
|
|
serde = { version = "1.0.228", features = ["derive"] }
|
|
serde_json = "1.0.150"
|
|
sha2 = "0.10.9"
|
|
sysinfo = "0.39.3"
|
|
tokio = { version = "1.52.3", features = ["full"] }
|
|
tower-http = { version = "0.7.0", features = ["cors", "fs"] }
|