mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
18 lines
353 B
Python
18 lines
353 B
Python
from app import api
|
|
from routes.base import BaseApi
|
|
|
|
|
|
class DeployApi(BaseApi):
|
|
col_name = 'deploys'
|
|
|
|
arguments = (
|
|
('spider_id', str),
|
|
('node_id', str),
|
|
)
|
|
|
|
|
|
api.add_resource(DeployApi,
|
|
'/api/deploys',
|
|
'/api/deploys/<string:id>',
|
|
'/api/deploys/<string:id>/<string:action>')
|