netclock/netclock.py
Armin Friedl 19c9e720e7
All checks were successful
continuous-integration/drone/push Build is passing
Prepare worldclock, no trailing / for blueprint roots
If specifying a blueprint with route "/", this will result
in flask redirecting to a request to `http://example.com/blueprint`
to `http://example.com/blueprint/`. This we don't want.
2020-09-14 21:13:25 +02:00

14 lines
357 B
Python

from flask import Flask
app = Flask(__name__)
app.secret_key = b'_5#y2L"F4Q8z\n\xec]/'
app.config.update(SESSION_COOKIE_SAMESITE='Strict')
import views
from countdown import app as countdown
app.register_blueprint(countdown, url_prefix="/countdown")
from worldclock import app as worldclock
app.register_blueprint(worldclock, url_prefix="/worldclock")