summaryrefslogtreecommitdiffstats
path: root/server/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/main.rs')
-rw-r--r--server/src/main.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/server/src/main.rs b/server/src/main.rs
index fc27531b..48074316 100644
--- a/server/src/main.rs
+++ b/server/src/main.rs
@@ -192,13 +192,8 @@ fn main() {
};
App::with_state(state)
- // redirect to websocket.html
- // .resource("/", |r| r.method(http::Method::GET).f(|_| {
- // HttpResponse::Found()
- // .header("LOCATION", "/static/websocket.html")
- // .finish()
- // }))
- .resource("/service/ws", |r| r.route().f(chat_route))
+ // .resource("/api/v1/rest", |r| r.method(http::Method::POST).f(|_| {})
+ .resource("/api/v1/ws", |r| r.route().f(chat_route))
// static resources
.resource("/", |r| r.route().f(index))
.handler(