from app.plugins import PluginBase from app.plugins import MountPoint from .api import TaskObjDetect from .api import TaskObjDownload 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 [ MountPoint('task/(?P[^/.]+)/detect', TaskObjDetect.as_view()), MountPoint('task/[^/.]+/download/(?P.+)', TaskObjDownload.as_view()), ]