添加新接口

This commit is contained in:
tangshuangpku@hotmail.com 2016-06-06 21:58:58 +08:00
parent c6eb0e4a3f
commit a0cb1b9687
2 changed files with 3 additions and 3 deletions

View File

@ -810,4 +810,4 @@ if __name__ == '__main__':
# server = http.server.HTTPServer((masterip, masterport), DockletHttpHandler)
logger.info("starting master server")
app.run(host = masterip, port = masterport, threaded=True)
app.run(host = masterip, port = masterport, threaded=True, debug=True)

View File

@ -354,7 +354,7 @@ def userquery():
@app.route("/notification/", methods=['GET'])
@administration_required
def notification():
def notification_list():
return NotificationView.as_view()
@ -509,4 +509,4 @@ if __name__ == '__main__':
elif opt in ("-p", "--port"):
webport = int(arg)
app.run(host = webip, port = webport, threaded=True)
app.run(host = webip, port = webport, threaded=True, debug=True)