From 8f87ac8ce001cc4cea285e892852e1ca7c3982cd Mon Sep 17 00:00:00 2001 From: Ben Zhang Date: Sun, 18 Aug 2024 21:03:03 +0000 Subject: [PATCH] Use hyphen instead of underscore in api --- src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index 159fb3f..35b8e2b 100644 --- a/src/main.py +++ b/src/main.py @@ -74,7 +74,7 @@ class SignUpRequest(BaseModel): CODE_TTL_SEC = 15 * 60 -@app.post("/sign_up") +@app.post("/sign-up") def sign_up(req: SignUpRequest, request: Request): # validate email if not re.match(r"[^@]+@[^@]+\.[^@]+", req.email):