mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Move blueprints into components
This commit is contained in:
parent
f8af192fc1
commit
bf0d6da143
2 changed files with 3 additions and 4 deletions
|
@ -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!"
|
||||||
|
|
|
@ -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})
|
Loading…
Reference in a new issue