File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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" ):
You can’t perform that action at this time.
0 commit comments