Skip to content

Commit e6d7dbc

Browse files
authored
Change example routes (#24)
* change routes in sample * push image * change back rule for main
1 parent ead877f commit e6d7dbc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Python package
33
on: [push]
44

55
env:
6-
EXAMPLE_IMAGE_NAME: ghcr.io/descope/py-example:0.1
6+
EXAMPLE_IMAGE_NAME: ghcr.io/descope/py-example:0.1.1
77

88
jobs:
99
build:

samples/otp_web_sample_app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def handle_auth_error(ex):
3838
return response
3939

4040

41-
@APP.route("/api/signup", methods=["POST"])
41+
@APP.route("/otp/signup", methods=["POST"])
4242
def signup():
4343
data = request.get_json(force=True)
4444
email = data.get("email", None)
@@ -88,7 +88,7 @@ def signuporin():
8888
return jsonify(message=response)
8989

9090

91-
@APP.route("/api/verify", methods=["POST"])
91+
@APP.route("/otp/verify", methods=["POST"])
9292
def verify():
9393
data = request.get_json(force=True)
9494
email = data.get("email", None)

0 commit comments

Comments
 (0)