first commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
from flask import Flask, render_template
|
||||
|
||||
def create_app():
|
||||
app = Flask(__name__)
|
||||
app.config.from_mapping(
|
||||
MYSQL_HOST='192.168.132.195',
|
||||
MYSQL_USER='flaskuser',
|
||||
MYSQL_PASSWORD='password',
|
||||
MYSQL_DB='otrs',
|
||||
WEB_SERVICE_ID=13
|
||||
)
|
||||
|
||||
from .api.tag_nacht import tag_nacht_bp
|
||||
from .api.max_time_diff import max_time_diff_bp
|
||||
from .api.fuenf_minuten import fuenf_minuten_bp
|
||||
|
||||
app.register_blueprint(tag_nacht_bp)
|
||||
app.register_blueprint(max_time_diff_bp)
|
||||
app.register_blueprint(fuenf_minuten_bp)
|
||||
|
||||
@app.route('/')
|
||||
def index():
|
||||
return render_template('index.html')
|
||||
|
||||
return app
|
||||
Reference in New Issue
Block a user