MCPcopy Create free account
hub / github.com/tiny-pilot/tinypilot / auth_get

Function auth_get

app/api.py:228–234  ·  view source on GitHub ↗

Checks whether the user is authenticated. This is an internal endpoint queried by our NGINX proxy to check for the authentication state of the backend.

()

Source from the content-addressed store, hash-verified

226@api_blueprint.route('/auth', methods=['GET'])
227@required_auth(auth.Role.OPERATOR)
228def auth_get():
229 """Checks whether the user is authenticated.
230
231 This is an internal endpoint queried by our NGINX proxy to check for the
232 authentication state of the backend.
233 """
234 return json_response.success()
235
236
237@api_blueprint.route('/auth', methods=['POST'])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected