Move files to actual applets

This commit is contained in:
Jonathan Carter
2024-09-12 18:01:52 +02:00
parent 8661952137
commit 71011fcafd
26 changed files with 312 additions and 269 deletions

View File

@@ -0,0 +1,21 @@
from applets.disks import bp
from flask import Flask, request, session, redirect, \
url_for, render_template, flash, Blueprint
import dmm.lsblk as lsblk
@bp.route('/disks/')
def disks():
"""
Disks screen for the webui.
"""
return render_template('disks.html')
@bp.route('/disks/partition/<part>')
def disks_partition(part):
"""
Partition modal for the webui partition screen.
"""
return render_template('disks_partition.html')