1
0
mirror of https://github.com/tiyn/amphora-wiki.git synced 2026-02-22 04:44:48 +01:00

initial commit

This commit is contained in:
TiynGER
2020-05-30 01:46:10 +02:00
parent 1c57f74541
commit 51682d00f0
15 changed files with 499 additions and 0 deletions

22
src/app.py Normal file
View File

@@ -0,0 +1,22 @@
from flask import Flask, flash, make_response, render_template, request, redirect, abort
import content as con_gen
import config
app = Flask(__name__)
@app.errorhandler(404)
def page_not_found(e):
return render_template('error.html', title=config.TITLE, errorcode='404', style=config.STYLE), 404
@app.route('/')
@app.route('/index.html')
def index():
return 'ok'
if __name__ == '__main__':
app.run(host='0.0.0.0')