Skip to content

Commit

Permalink
add version argument, move endpoints to v1alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
volokluev committed Sep 20, 2024
1 parent 6fe79f0 commit 9cf26ef
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions snuba/web/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,8 @@ def unqualified_query_view(*, timer: Timer) -> Union[Response, str, WerkzeugResp
assert False, "unexpected fallthrough"


@application.route("/rpc/<name>", methods=["POST"])
@util.time_request("timeseries")
@application.route("/rpc/<version>/<name>", methods=["POST"])
@util.time_request("rpc")
def rpc(*, name: str, timer: Timer) -> Response:
try:
endpoint, req_class = ALL_RPCS[name]
Expand Down

0 comments on commit 9cf26ef

Please sign in to comment.