Skip to content

Commit

Permalink
feat: add post options to the base requests as well
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Dec 12, 2023
1 parent 1900f23 commit 2c84561
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/masquerade/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def add_common_headers(response):
return response


@app.route(f"{BASE_ROUTE}/info")
@app.route(f"{BASE_ROUTE}/info", methods=["GET", "POST"])
@as_json_p
def info():
"""base info request"""
Expand All @@ -55,8 +55,8 @@ def info():
}


@app.route(GEOCODE_SERVER_ROUTE)
@app.route(f"{GEOCODE_SERVER_ROUTE}/Masquerade")
@app.route(GEOCODE_SERVER_ROUTE, methods=["GET", "POST"])
@app.route(f"{GEOCODE_SERVER_ROUTE}/Masquerade", methods=["GET", "POST"])
@as_json_p
def geocode_base():
"""base geocode server request"""
Expand Down

0 comments on commit 2c84561

Please sign in to comment.