31 lines
466 B
Python
31 lines
466 B
Python
# project/server/main/views.py
|
|
|
|
|
|
#################
|
|
#### imports ####
|
|
#################
|
|
|
|
from flask import render_template, Blueprint
|
|
|
|
|
|
################
|
|
#### config ####
|
|
################
|
|
|
|
main_blueprint = Blueprint('main', __name__,)
|
|
|
|
|
|
################
|
|
#### routes ####
|
|
################
|
|
|
|
|
|
@main_blueprint.route('/')
|
|
def home():
|
|
return render_template('main/home.html')
|
|
|
|
|
|
@main_blueprint.route("/about/")
|
|
def about():
|
|
return render_template("main/about.html")
|