2025-01-23 20:09:58 +00:00
|
|
|
from app.plugins import PluginBase
|
|
|
|
from app.plugins import MountPoint
|
2025-01-24 16:43:19 +00:00
|
|
|
from .api import TaskObjDetect
|
|
|
|
from .api import TaskObjDownload
|
2025-01-23 20:09:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Plugin(PluginBase):
|
|
|
|
def include_js_files(self):
|
|
|
|
return ['main.js']
|
|
|
|
|
|
|
|
def build_jsx_components(self):
|
|
|
|
return ['ObjDetect.jsx']
|
|
|
|
|
|
|
|
def api_mount_points(self):
|
|
|
|
return [
|
2025-01-24 16:43:19 +00:00
|
|
|
MountPoint('task/(?P<pk>[^/.]+)/detect', TaskObjDetect.as_view()),
|
|
|
|
MountPoint('task/[^/.]+/download/(?P<celery_task_id>.+)', TaskObjDownload.as_view()),
|
2025-01-23 20:09:58 +00:00
|
|
|
]
|