Simple file-based wiki with fulltext-search.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
435 B

7 months ago
  1. from flask import Flask, flash, make_response, render_template, request, redirect, abort
  2. import content as con_gen
  3. import config
  4. app = Flask(__name__)
  5. @app.errorhandler(404)
  6. def page_not_found(e):
  7. return render_template('error.html', title=config.TITLE, errorcode='404', style=config.STYLE), 404
  8. @app.route('/')
  9. @app.route('/index.html')
  10. def index():
  11. return 'ok'
  12. if __name__ == '__main__':
  13. app.run(host='0.0.0.0')