cleanup mainapplet a bit
This commit is contained in:
@@ -4,7 +4,6 @@ from flask import Flask, request, session, redirect, \
|
|||||||
# we use this neat little trick to get config data from the main app
|
# we use this neat little trick to get config data from the main app
|
||||||
from flask import current_app
|
from flask import current_app
|
||||||
import gettext
|
import gettext
|
||||||
import dmm.lsblk as lsblk
|
|
||||||
|
|
||||||
@bp.route('/')
|
@bp.route('/')
|
||||||
def index():
|
def index():
|
||||||
@@ -16,16 +15,7 @@ def index():
|
|||||||
"Version: Unavailable")
|
"Version: Unavailable")
|
||||||
|
|
||||||
|
|
||||||
@bp.route('/api/v0')
|
@bp.route('/main/help',methods=['GET'])
|
||||||
def apihome():
|
|
||||||
"""
|
|
||||||
Not sure what this function should do, but have
|
|
||||||
a feeling that it should exist.
|
|
||||||
"""
|
|
||||||
return ("0")
|
|
||||||
|
|
||||||
|
|
||||||
@bp.route('/main/help',methods=['GET', 'POST', 'PUT'])
|
|
||||||
def main_welcome():
|
def main_welcome():
|
||||||
"""
|
"""
|
||||||
Manages the main help system.
|
Manages the main help system.
|
||||||
@@ -33,7 +23,7 @@ def main_welcome():
|
|||||||
return render_template('help.html')
|
return render_template('help.html')
|
||||||
|
|
||||||
|
|
||||||
@bp.route('/main/quit',methods=['GET', 'POST', 'PUT'])
|
@bp.route('/main/quit',methods=['GET'])
|
||||||
def main_quit():
|
def main_quit():
|
||||||
"""
|
"""
|
||||||
Manages the quit dialog.
|
Manages the quit dialog.
|
||||||
@@ -41,7 +31,7 @@ def main_quit():
|
|||||||
return render_template('quit.html')
|
return render_template('quit.html')
|
||||||
|
|
||||||
|
|
||||||
@bp.route('/main/menu',methods=['GET', 'POST', 'PUT'])
|
@bp.route('/main/menu',methods=['GET'])
|
||||||
def main_menu():
|
def main_menu():
|
||||||
"""
|
"""
|
||||||
Manages the main menu.
|
Manages the main menu.
|
||||||
|
|||||||
Reference in New Issue
Block a user