forked from andreeuuetoa/litsimaja
Pointless dependency
This commit is contained in:
@@ -5,7 +5,6 @@ import sys
|
|||||||
import lib.ProgramLoading as Pl
|
import lib.ProgramLoading as Pl
|
||||||
from lib.Litsimaja import Litsimaja
|
from lib.Litsimaja import Litsimaja
|
||||||
from flask import Flask, request, Response, render_template, json
|
from flask import Flask, request, Response, render_template, json
|
||||||
from flask_accept import accept
|
|
||||||
|
|
||||||
# start litsimaja
|
# start litsimaja
|
||||||
lm = Litsimaja()
|
lm = Litsimaja()
|
||||||
@@ -31,7 +30,6 @@ def lm_standard_xhr_response() -> Response:
|
|||||||
|
|
||||||
|
|
||||||
@app.route('/', methods=['GET'])
|
@app.route('/', methods=['GET'])
|
||||||
@accept('text/html')
|
|
||||||
def respond_root():
|
def respond_root():
|
||||||
return render_template(
|
return render_template(
|
||||||
'index.html',
|
'index.html',
|
||||||
@@ -42,7 +40,6 @@ def respond_root():
|
|||||||
|
|
||||||
|
|
||||||
@app.route('/status', methods=['GET'])
|
@app.route('/status', methods=['GET'])
|
||||||
@accept('application/json')
|
|
||||||
def respond_status():
|
def respond_status():
|
||||||
return lm_standard_xhr_response()
|
return lm_standard_xhr_response()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user