dotenv #7

Merged
psannus merged 3 commits from feature/dotenv into master 2021-05-03 10:50:25 +00:00
Showing only changes of commit 86dd419080 - Show all commits

View File

@@ -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()