mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-04-01 06:03:39 +00:00
docs: restore docs for the view
This commit is contained in:
@@ -125,7 +125,7 @@ class BaseView(View, CorsViewMixin):
|
||||
|
||||
Returns:
|
||||
list[str]: list of routes defined for the view. By default, it tries to read :attr:`ROUTES` option if set
|
||||
and returns empty list otherwise
|
||||
and returns empty list otherwise
|
||||
"""
|
||||
del configuration
|
||||
return cls.ROUTES
|
||||
|
||||
@@ -21,6 +21,9 @@ from ahriman.core.configuration import Configuration
|
||||
|
||||
|
||||
class StatusViewGuard:
|
||||
"""
|
||||
helper for check if status routes are enabled
|
||||
"""
|
||||
|
||||
ROUTES: list[str]
|
||||
|
||||
@@ -34,7 +37,7 @@ class StatusViewGuard:
|
||||
|
||||
Returns:
|
||||
list[str]: list of routes defined for the view. By default, it tries to read :attr:`ROUTES` option if set
|
||||
and returns empty list otherwise
|
||||
and returns empty list otherwise
|
||||
"""
|
||||
if configuration.getboolean("web", "service_only", fallback=False):
|
||||
return []
|
||||
|
||||
Reference in New Issue
Block a user