Skip to content

Commit

Permalink
Changed the path to match the same path as the old version
Browse files Browse the repository at this point in the history
  • Loading branch information
LDiazN committed Jan 16, 2025
1 parent d1a8137 commit f3785be
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ProbeLoginResponse(BaseModel):
token : str
expire : str

@router.post("/ooniprobe/login/", tags=["ooniprobe"], response_model=ProbeLoginResponse)
@router.post("/login", tags=["ooniprobe"], response_model=ProbeLoginResponse)
def probe_login_post(
probe_login : ProbeLogin,
response : Response,
Expand Down Expand Up @@ -79,7 +79,7 @@ class ProbeRegister(BaseModel):
class ProbeRegisterResponse(BaseModel):
client_id: str

@router.post("/ooniprobe/register/", tags=["ooniprobe"], response_model=ProbeRegisterResponse)
@router.post("/register", tags=["ooniprobe"], response_model=ProbeRegisterResponse)
def probe_register_post(
probe_register : ProbeRegister,
response : Response,
Expand Down

0 comments on commit f3785be

Please sign in to comment.