OpenDroneMap-WebODM/coreplugins/measure/plugin.py

18 wiersze
633 B
Python
Czysty Zwykły widok Historia

from app.plugins import MountPoint
2018-02-09 17:38:42 +00:00
from app.plugins import PluginBase
2020-01-17 21:22:22 +00:00
from .api import TaskVolume, TaskVolumeCheck, TaskVolumeResult
2018-02-09 17:38:42 +00:00
class Plugin(PluginBase):
def include_js_files(self):
return ['main.js']
def build_jsx_components(self):
return ['app.jsx']
def api_mount_points(self):
return [
2020-01-17 21:22:22 +00:00
MountPoint('task/(?P<pk>[^/.]+)/volume$', TaskVolume.as_view()),
MountPoint('task/[^/.]+/volume/check/(?P<celery_task_id>.+)$', TaskVolumeCheck.as_view()),
MountPoint('task/(?P<pk>[^/.]+)/volume/get/(?P<celery_task_id>.+)$', TaskVolumeResult.as_view()),
]