Initial layout
This commit is contained in:
6
src/applets/welcome/__init__.py
Normal file
6
src/applets/welcome/__init__.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from flask import Blueprint
|
||||
|
||||
bp = Blueprint('welcome', __name__)
|
||||
|
||||
from applets.welcome import routes
|
||||
|
||||
BIN
src/applets/welcome/__pycache__/__init__.cpython-311.pyc
Normal file
BIN
src/applets/welcome/__pycache__/__init__.cpython-311.pyc
Normal file
Binary file not shown.
BIN
src/applets/welcome/__pycache__/routes.cpython-311.pyc
Normal file
BIN
src/applets/welcome/__pycache__/routes.cpython-311.pyc
Normal file
Binary file not shown.
20
src/applets/welcome/routes.py
Normal file
20
src/applets/welcome/routes.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from applets.welcome import bp
|
||||
|
||||
|
||||
@bp.route('/welcome')
|
||||
def welcome_index():
|
||||
"""
|
||||
The page you'd get if you access the root of
|
||||
this app in a browser.
|
||||
"""
|
||||
return ("Welcome to System Installer Daemon POC <br />"
|
||||
"This is the Welcome Index")
|
||||
|
||||
|
||||
@bp.route('/api/')
|
||||
def api_home():
|
||||
"""
|
||||
Wel
|
||||
"""
|
||||
return ("Welcome to the welcome API")
|
||||
|
||||
Reference in New Issue
Block a user