Initial layout

This commit is contained in:
Jonathan Carter
2024-03-30 22:37:58 +02:00
commit 12e943f65c
9 changed files with 118 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
from flask import Blueprint
bp = Blueprint('main', __name__)
from applets.main import routes

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,21 @@
from applets.main import bp
@bp.route('/')
def 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 />"
"Version: Unavailable")
@bp.route('/api/v0')
def apihome():
"""
Not sure what this function should do, but have
a feeling that it should exist.
"""
return ("0")

View File

@@ -0,0 +1,6 @@
from flask import Blueprint
bp = Blueprint('welcome', __name__)
from applets.welcome import routes

Binary file not shown.

View 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")