2018-10-14 08:49:20 -04:00
|
|
|
# coding:utf-8
|
|
|
|
|
|
2018-11-09 03:41:11 -05:00
|
|
|
import sys
|
|
|
|
|
sys.path.append("/class/core")
|
|
|
|
|
import public
|
|
|
|
|
|
2018-10-14 08:49:20 -04:00
|
|
|
from flask import Blueprint, render_template
|
|
|
|
|
|
|
|
|
|
crontab = Blueprint('crontab', __name__, template_folder='templates')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@crontab.route("/")
|
|
|
|
|
def index():
|
|
|
|
|
return render_template('default/crontab.html')
|
2018-11-09 03:41:11 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
@crontab.route("/list", methods=['GET', 'POST'])
|
|
|
|
|
def list():
|
|
|
|
|
data = []
|
|
|
|
|
return public.getJson({})
|