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