summaryrefslogtreecommitdiffstats
path: root/crates/auth/src/server/routes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/auth/src/server/routes.rs')
-rw-r--r--crates/auth/src/server/routes.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/crates/auth/src/server/routes.rs b/crates/auth/src/server/routes.rs
index 1ab012c..6773962 100644
--- a/crates/auth/src/server/routes.rs
+++ b/crates/auth/src/server/routes.rs
@@ -1,5 +1,8 @@
pub mod authorised;
pub mod discord;
+
+use std::fmt::Display;
+
use axum::response::IntoResponse;
use serde::Deserialize;
@@ -9,6 +12,18 @@ pub enum Provider {
Discord,
}
+impl Display for Provider {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ write!(
+ f,
+ "{}",
+ match self {
+ Provider::Discord => "discord",
+ }
+ )
+ }
+}
+
pub async fn health_check() -> impl IntoResponse {
let name = env!("CARGO_PKG_NAME");
let ver = env!("CARGO_PKG_VERSION");