mirror of
https://github.com/NohamR/BrunoServer.git
synced 2026-11-25 15:19:53 +00:00
Fixed API versions according to requests originating from bruno client
This commit is contained in:
1 parent
08ec6b86d1
commit
dca8ae70df
1 file changed
+2
-2
@@ -30,7 +30,7 @@ def _make_jwt_like(payload: dict) -> str:
|
||||
return f"{header_b64}.{payload_b64}.{signature_b64}"
|
||||
|
||||
|
||||
@app.route("/api/v1/license/activate", methods=["POST"])
|
||||
@app.route("/api/v2/license/activate", methods=["POST"])
|
||||
def activate_license():
|
||||
"""Handle license activation request."""
|
||||
payload = request.get_json(silent=True) or {}
|
||||
@@ -101,7 +101,7 @@ def verify_activation_otp(activation_id: str):
|
||||
}), 200
|
||||
|
||||
|
||||
@app.route("/api/v1/license/verify", methods=["POST"])
|
||||
@app.route("/api/v2/license/verify", methods=["POST"])
|
||||
def verify_license():
|
||||
"""Verify license token."""
|
||||
payload = request.get_json(silent=True) or {}
|
||||
|
||||
Reference in new issue
Block a user