summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index ee71aac..993d72b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -21,6 +21,9 @@ fn handle(mut stream: TcpStream) {
let (status_line, filename) = match &request_line[..] {
"GET / HTTP/1.1" => ("HTTP/1.1 200 OK", "./public/index.html"),
+ "GET /.well-known/oauth-authorization-server HTTP/1.1" => {
+ ("HTTP/1.1 200 OK", "./public/metadata.json")
+ }
_ => ("HTTP/1.1 404 NOT FOUND", "./public/404.html"),
};