- Add auth.rs module with session management - Implement login/logout/verify API endpoints - Add authentication middleware - Protect /api/v2/tree endpoint - Default demo user (username: demo, password: demo123) - Token-based auth with 24-hour expiration - bcrypt password hashing
35 lines
812 B
TOML
35 lines
812 B
TOML
[package]
|
|
name = "markbase"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Momentry Display Engine"
|
|
|
|
[[bin]]
|
|
name = "markbase"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
clap = { version = "4", features = ["derive"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
pulldown-cmark = "0.13"
|
|
axum = "0.7"
|
|
axum-extra = { version = "0.9", features = ["multipart"] }
|
|
tokio = { version = "1", features = ["full"] }
|
|
tokio-util = { version = "0.7", features = ["io"] }
|
|
mime_guess = "2"
|
|
tower = "0.5"
|
|
anyhow = "1"
|
|
uuid = { version = "1", features = ["v4"] }
|
|
rusqlite = { version = "0.32", features = ["bundled"] }
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
async-trait = "0.1"
|
|
once_cell = "1"
|
|
sha2 = "0.10"
|
|
jsonwebtoken = "9"
|
|
bcrypt = "0.15"
|
|
|
|
[dev-dependencies]
|
|
axum-test = "14"
|
|
tokio-test = "0.4"
|