aboutsummaryrefslogtreecommitdiffstats
path: root/teleterm/src/web.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-27 12:48:24 -0500
committerJesse Luehrs <doy@tozt.net>2019-11-27 15:17:17 -0500
commit23911b9ad5d942456fc2b4a517c5cf6c67e0a611 (patch)
tree29a76423d36bb3269a596ec0564e755985f940b8 /teleterm/src/web.rs
parentd26fe166b1f5fe2a5ea153a4d908598c61f4979b (diff)
downloadteleterm-23911b9ad5d942456fc2b4a517c5cf6c67e0a611.tar.gz
teleterm-23911b9ad5d942456fc2b4a517c5cf6c67e0a611.zip
add oauth endpoint
no functionality yet
Diffstat (limited to 'teleterm/src/web.rs')
-rw-r--r--teleterm/src/web.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/teleterm/src/web.rs b/teleterm/src/web.rs
index 48c8c3c..c1e954c 100644
--- a/teleterm/src/web.rs
+++ b/teleterm/src/web.rs
@@ -2,6 +2,7 @@ mod disk_session;
mod list;
mod login;
mod logout;
+mod oauth;
mod view;
mod watch;
mod ws;
@@ -158,6 +159,11 @@ fn router(data: &Config) -> impl gotham::handler::NewHandler {
.get("/login")
.with_query_string_extractor::<login::QueryParams>()
.to(login::run);
+ route
+ .get("/oauth/:method")
+ .with_path_extractor::<oauth::PathParts>()
+ .with_query_string_extractor::<oauth::QueryParams>()
+ .to(oauth::run);
route.get("/logout").to(logout::run);
})
}