Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
Added root redirect to github wiki docs (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpalvarezl authored Jan 19, 2021
1 parent f8d2028 commit 200fcee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/routes/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
extern crate rocket;

use rocket::response::Redirect;
use rocket::Catcher;
use rocket::Route;
use rocket_contrib::json::JsonValue;
Expand All @@ -13,6 +14,7 @@ pub mod transactions;

pub fn active_routes() -> Vec<Route> {
routes![
root,
about::backbone,
about::info,
balances::get_balances,
Expand Down Expand Up @@ -47,3 +49,8 @@ fn panic() -> JsonValue {
"reason": "Server error occurred."
})
}

#[get("/")]
pub fn root() -> Redirect {
Redirect::temporary("https://github.com/gnosis/safe-client-gateway/wiki")
}

0 comments on commit 200fcee

Please sign in to comment.