Use caddy for dev server
This commit is contained in:
@@ -97,8 +97,8 @@ async fn main() -> Result<(), std::io::Error> {
|
||||
}
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let app = Route::new().at("/", get(index)).at(
|
||||
"/ws/:name",
|
||||
let app = Route::new().at("/api/", get(index)).at(
|
||||
"/api/ws/:name",
|
||||
get(ws.data(tokio::sync::broadcast::channel::<String>(32).0)),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user