fix: add routes to forgejo_error_reporter plugin manifest
This commit is contained in:
@@ -10,7 +10,7 @@ import os
|
||||
from typing import Any
|
||||
|
||||
from app.plugins.base import BasePlugin
|
||||
from app.plugins.manifest import PluginManifest
|
||||
from app.plugins.manifest import PluginManifest, PluginRouteDef
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -28,6 +28,13 @@ class ForgejoErrorReporterPlugin(BasePlugin):
|
||||
events=[],
|
||||
migrations=[],
|
||||
permissions=[],
|
||||
routes=[
|
||||
PluginRouteDef(
|
||||
path="/api/v1/forgejo-error-reporter",
|
||||
module="app.plugins.builtins.forgejo_error_reporter.routes",
|
||||
router_attr="router",
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
def __init__(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user