I'm looking at the documentation and I cannot figure out how to get this to run
pub fn router() -> Router {
Router::new()
.route("/", get(list_rooms))
.route("/", post(create_room))
.route("/:slug", get(room))
.route("/:id/keys", get(stream_keys))
}
it gives me Invalid route "/:id/keys": insertion failed due to conflict with previously registered route: /:slug
How do I solve it?