Add dashboard router with session auth, announce endpoint, and WebSocket handler
- Login/logout/dashboard with HMAC-signed session cookies - POST /admin/announce with session or bearer auth - WS /ws/announce for subscribe/broadcast - Static stubs: login.html, dashboard.html Made-with: Cursor
This commit is contained in:
10
src/ntr_fetcher/static/login.html
Normal file
10
src/ntr_fetcher/static/login.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html><head><title>Login</title></head>
|
||||
<body>
|
||||
<!--ERROR-->
|
||||
<form method="post" action="/login">
|
||||
<label>Username <input name="username"></label>
|
||||
<label>Password <input name="password" type="password"></label>
|
||||
<button type="submit">Login</button>
|
||||
</form>
|
||||
</body></html>
|
||||
Reference in New Issue
Block a user