etiquette/frontends/etiquette_flask/backend/endpoints/basic_endpoints.py
Ethan Dalool adb1d0ef39 Replace all double blank lines with single, improve hash headers.
There was always some semblance that two blank lines has some kind of
meaning or structure that's different from single blank lines, but
in reality it was mostly arbitrary and I can't stand to look at it
any more.
2020-09-19 03:13:23 -07:00

19 lines
529 B
Python

import flask; from flask import request
import random
from .. import common
site = common.site
session_manager = common.session_manager
####################################################################################################
@site.route('/')
def root():
motd = random.choice(common.P.config['motd_strings'])
return common.render_template(request, 'root.html', motd=motd)
@site.route('/favicon.ico')
@site.route('/favicon.png')
def favicon():
return flask.send_file(common.FAVICON_PATH.absolute_path)