modularize frontend and implement new css and themes
This commit is contained in:
+3
-1
@@ -39,6 +39,8 @@ async fn main() {
|
||||
.route("/user", get(handlers::pages::user_page))
|
||||
.route("/supporter", get(handlers::pages::supporter_page))
|
||||
.route("/reset-countdown", get(handlers::pages::reset_countdown))
|
||||
// New API endpoint for creating sessions without a form
|
||||
.route("/api/session/create", post(handlers::chat::create_session))
|
||||
.route("/ws/user/:session_id", get(handlers::ws::user_ws))
|
||||
.route(
|
||||
"/ws/supporter/:supporter_id",
|
||||
@@ -55,7 +57,7 @@ async fn main() {
|
||||
post(handlers::chat::supporter_send_message),
|
||||
)
|
||||
.route("/sessions", get(handlers::chat::get_sessions))
|
||||
.route("/sessions/new", post(handlers::chat::new_session))
|
||||
// Removed: .route("/sessions/new", post(handlers::chat::new_session))
|
||||
.nest_service("/static", ServeDir::new("static"))
|
||||
.with_state(state);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user