Files
crawlab/routes/tasks.py
Yeqing Zhang 7d160d8665 update routes
2019-02-15 12:33:19 +08:00

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>'
)