Add some previously uncommitted stuff

This commit is contained in:
Jonathan Carter
2024-09-07 20:09:42 +02:00
parent 1b0e2f0483
commit c69f570b69
7 changed files with 47 additions and 2 deletions

View File

@@ -1,4 +1,7 @@
from applets.welcome import bp
from flask import Flask, request, session, redirect, \
url_for, render_template, flash, Blueprint
import dmm.lsblk as lsblk
@bp.route('/welcome',methods=['GET', 'POST', 'PUT'])
@@ -7,8 +10,10 @@ 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")
blkid = lsblk.list_scsi_devices()
return render_template('welcome.html', blkid=blkid)
#return ("Welcome to System Installer Daemon POC <br />"
# "This is the Welcome Index")
@bp.route('/welcome2')