Sample CLI
gway web.app current-endpoint
References
Full Code
def current_endpoint():
"""
Return the canonical endpoint path for the current request (the project route prefix).
Falls back to gw.context['current_endpoint'], or None.
"""
return gw.context.get('current_endpoint')