esp_routes_basic and server comm
This commit is contained in:
10
routes/esp_routes.py
Normal file
10
routes/esp_routes.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from flask import Blueprint, render_template, request, jsonify
|
||||
import routes.shared as shared
|
||||
esp = Blueprint('eps', __name__, url_prefix='/unsecure/esp')
|
||||
|
||||
|
||||
@esp.route('/')
|
||||
def fetch_command():
|
||||
pCd = shared.pending_command
|
||||
shared.reset_command()
|
||||
return jsonify(pCd)
|
||||
Reference in New Issue
Block a user