MCPcopy
hub / github.com/AstrBotDevs/AstrBot / is_protected_path

Method is_protected_path

astrbot/dashboard/plugin_page_auth.py:10–13  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

8class PluginPageAuth:
9 @staticmethod
10 def is_protected_path(path: str) -> bool:
11 return path.startswith(PLUGIN_PAGE_CONTENT_PREFIX) or path.startswith(
12 PLUGIN_PAGE_BRIDGE_PATH
13 )
14
15 @staticmethod
16 def is_asset_token(payload: dict) -> bool:

Callers 2

is_scope_validMethod · 0.80
auth_middlewareMethod · 0.80

Calls 1

startswithMethod · 0.80

Tested by

no test coverage detected