Move files to actual applets
This commit is contained in:
21
src/applets/disks/routes.py
Normal file
21
src/applets/disks/routes.py
Normal 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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user