Skip to content

Commit 12f1c63

Browse files
committed
Rename endpoint functions
1 parent 5452860 commit 12f1c63

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

00-Starter-Seed/server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def decorated(*args, **kwargs):
141141
# Controllers API
142142
@APP.route("/api/public")
143143
@cross_origin(headers=["Content-Type", "Authorization"])
144-
def ping():
144+
def public():
145145
"""No access token required to access this route
146146
"""
147147
response = "All good. You don't need to be authenticated to call this"
@@ -152,7 +152,7 @@ def ping():
152152
@cross_origin(headers=["Content-Type", "Authorization"])
153153
@cross_origin(headers=["Access-Control-Allow-Origin", "*"])
154154
@requires_auth
155-
def secured_ping():
155+
def private():
156156
"""A valid access token is required to access this route
157157
"""
158158
response = "All good. You only get this message if you're authenticated"
@@ -163,7 +163,7 @@ def secured_ping():
163163
@cross_origin(headers=["Content-Type", "Authorization"])
164164
@cross_origin(headers=["Access-Control-Allow-Origin", "*"])
165165
@requires_auth
166-
def secured_private_ping():
166+
def private_scoped():
167167
"""A valid access token and an appropriate scope are required to access this route
168168
"""
169169
if requires_scope("read:messages"):

0 commit comments

Comments
 (0)