summaryrefslogtreecommitdiff
path: root/src/api/pages.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/api/pages.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/api/pages.rs b/src/api/pages.rs
index b2bef82..7f5bfc3 100644
--- a/src/api/pages.rs
+++ b/src/api/pages.rs
@@ -14,7 +14,7 @@ async fn login(user: Option<AuthorizedUser>) -> Response {
if user.is_some() {
return Redirect::to("/home").into_response()
} else {
- return ResponseCode::Success.file("/login.html").await.unwrap()
+ return ResponseCode::Success.file("/login.html").await
}
}
@@ -22,7 +22,7 @@ async fn home(user: Option<AuthorizedUser>) -> Response {
if user.is_none() {
return Redirect::to("/login").into_response()
} else {
- return ResponseCode::Success.file("/home.html").await.unwrap()
+ return ResponseCode::Success.file("/home.html").await
}
}
@@ -30,7 +30,7 @@ async fn people(user: Option<AuthorizedUser>) -> Response {
if user.is_none() {
return Redirect::to("/login").into_response()
} else {
- return ResponseCode::Success.file("/people.html").await.unwrap()
+ return ResponseCode::Success.file("/people.html").await
}
}
@@ -38,7 +38,7 @@ async fn profile(user: Option<AuthorizedUser>) -> Response {
if user.is_none() {
return Redirect::to("/login").into_response()
} else {
- return ResponseCode::Success.file("/profile.html").await.unwrap()
+ return ResponseCode::Success.file("/profile.html").await
}
}