[Fix] Stability
This commit is contained in:
parent
5d5dabcdb0
commit
8082050170
20 changed files with 563 additions and 464 deletions
|
|
@ -3,10 +3,6 @@ use mtp::webserver::WebServerConfig;
|
|||
|
||||
pub fn build_web_config() -> Result<WebServerConfig, mtp::webserver::RouterError> {
|
||||
WebServerConfig::new()
|
||||
.route(
|
||||
"/",
|
||||
|_request, response| async move { index_handler(response) },
|
||||
)?
|
||||
.route("/api/download/iota_frontend", api::handle)?
|
||||
.route("/api/get/omikron", api::handle)?
|
||||
.route("/api/get/connections", api::handle)?
|
||||
|
|
@ -15,5 +11,6 @@ pub fn build_web_config() -> Result<WebServerConfig, mtp::webserver::RouterError
|
|||
.route_pattern("/api/get/iota/{id}", api::handle_pattern)?
|
||||
.route_pattern("/api/get/id/{username}", api::handle_pattern)?
|
||||
.route_pattern("/api/get/user/{id}", api::handle_pattern)?
|
||||
.route_pattern("/direct/{short}", api::handle_pattern)
|
||||
.route_pattern("/direct/{short}", api::handle_pattern)?
|
||||
.fallback(|_request, response| async move { index_handler(response) })
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue