1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Move blueprints into components

This commit is contained in:
Steffo 2019-06-01 23:52:19 +02:00
parent f8af192fc1
commit bf0d6da143
2 changed files with 3 additions and 4 deletions

View file

@ -1,5 +1,5 @@
import flask as f import flask as f
from .. import Royalprint from ... import Royalprint
bp = Royalprint("helloworld", __name__, url_prefix="/helloworld") bp = Royalprint("helloworld", __name__, url_prefix="/helloworld")
@ -8,4 +8,3 @@ bp = Royalprint("helloworld", __name__, url_prefix="/helloworld")
@bp.route("/") @bp.route("/")
def helloworld(): def helloworld():
return "Hello world!" return "Hello world!"

View file

@ -1,6 +1,6 @@
import flask as f import flask as f
from .. import Royalprint from ... import Royalprint
from ...database.tables import Royal from ....database.tables import Royal
bp = Royalprint("testing", __name__, url_prefix="/testing", required_tables={Royal}) bp = Royalprint("testing", __name__, url_prefix="/testing", required_tables={Royal})