Files
system-installer-daemon/src/applets/disks/routes.py
2024-09-12 18:01:52 +02:00

22 lines
469 B
Python

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')