from app.plugins import PluginBase from app.plugins import MountPoint from .api import TaskChangeMapGenerate from .api import TaskChangeMapCheck from .api import TaskChangeMapDownload class Plugin(PluginBase): def include_js_files(self): return ['main.js'] def build_jsx_components(self): return ['ChangeDetection.jsx'] def api_mount_points(self): return [ MountPoint('task/(?P[^/.]+)/changedetection/generate', TaskChangeMapGenerate.as_view()), MountPoint('task/(?P[^/.]+)/changedetection/check/(?P.+)', TaskChangeMapCheck.as_view()), MountPoint('task/(?P[^/.]+)/changedetection/download/(?P.+)', TaskChangeMapDownload.as_view()), ]