ail-framework/var/www/modules/rawSkeleton/Flask_rawSkeleton.py

35 lines
798 B
Python
Raw Permalink Normal View History

2018-05-04 11:53:29 +00:00
#!/usr/bin/env python3
# -*-coding:UTF-8 -*
'''
Flask functions and routes for the trending modules page
'''
import redis
from flask import Flask, render_template, jsonify, request, Blueprint
from Role_Manager import login_admin, login_analyst, login_read_only
2019-05-02 15:31:14 +00:00
from flask_login import login_required
# ============ VARIABLES ============
import Flask_config
app = Flask_config.app
rawSkeleton = Blueprint('rawSkeleton', __name__, template_folder='templates')
# ============ FUNCTIONS ============
def one():
return 1
# ============= ROUTES ==============
@rawSkeleton.route("/rawSkeleton/", methods=['GET'])
2019-05-02 15:31:14 +00:00
@login_required
@login_read_only
def skeleton_page():
return render_template("rawSkeleton.html")
# ========= REGISTRATION =========
app.register_blueprint(rawSkeleton)