mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
19 lines
331 B
Python
19 lines
331 B
Python
from app import api
|
|
from routes.base import BaseApi
|
|
|
|
|
|
class TaskApi(BaseApi):
|
|
col_name = 'tasks_celery'
|
|
|
|
arguments = (
|
|
('deploy_id', str),
|
|
('file_path', str)
|
|
)
|
|
|
|
|
|
# add api to resources
|
|
api.add_resource(TaskApi,
|
|
'/api/tasks',
|
|
'/api/tasks/<string:id>'
|
|
)
|