diff --git a/src/api/notifications.rs b/src/api/notifications.rs index 299d64c114272797bd778a7e1a0b53e49f83c1c1..6e06a5a9c6c3be2d6be2f70aaeed4ae3624a7ae6 100644 --- a/src/api/notifications.rs +++ b/src/api/notifications.rs @@ -6,7 +6,12 @@ use auth::Headers; use db::DbConn; pub fn routes() -> Vec<Route> { - routes![negotiate] + routes![negotiate, websockets_err] +} + +#[get("/hub")] +fn websockets_err() -> JsonResult { + err!("'/notifications/hub' should be proxied towards the websocket server, otherwise notifications will not work. Go to the README for more info.") } #[post("/hub/negotiate")]