MCPcopy Create free account
hub / github.com/Tong89/smartNode / require_auth

Function require_auth

backend/auth.py:133–140  ·  view source on GitHub ↗

显式标注需要鉴权的路由(实际校验由 before_request 统一完成)。

(fn)

Source from the content-addressed store, hash-verified

131
132
133def require_auth(fn):
134 """显式标注需要鉴权的路由(实际校验由 before_request 统一完成)。"""
135
136 @wraps(fn)
137 def wrapper(*args, **kwargs):
138 return fn(*args, **kwargs)
139
140 return wrapper

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected