diff options
author | Dessalines <happydooby@gmail.com> | 2019-05-15 09:04:05 -0700 |
---|---|---|
committer | Dessalines <happydooby@gmail.com> | 2019-05-15 09:04:05 -0700 |
commit | 4a14e7ecf9b10fd977d9c42e0e0feff50df957a6 (patch) | |
tree | d60f25d52a6ca7eedcdfd5276781e7ee42b71ce4 /server | |
parent | 8e22de31dcc2e38d5acbd52e7272c493569d098f (diff) |
Adding API docs for app developers.
- Fixes #99.
Diffstat (limited to 'server')
-rw-r--r-- | server/src/main.rs | 9 |
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( |