Skip to content

Commit

Permalink
Use hyphen instead of underscore in api (#4)
Browse files Browse the repository at this point in the history
It's good practice to use hyphens instead of underscores in URLs:
https://stackoverflow.com/a/2318376/4527337
  • Loading branch information
ben-z authored Aug 18, 2024
1 parent a903360 commit dc67415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit dc67415

Please sign in to comment.