capsul-flask/capsulflask/landing.py

50 lines
1.2 KiB
Python
Raw Permalink Normal View History

from flask import Blueprint
from flask import render_template
2020-05-16 04:19:01 +00:00
from flask import current_app
2024-02-11 04:40:10 +00:00
from flask import make_response
from capsulflask.db import get_model
bp = Blueprint("landing", __name__, url_prefix="/")
@bp.route("/")
def index():
2024-02-11 04:40:10 +00:00
resp = make_response(render_template("index.html"), 200)
resp.headers['Cache-Control'] = 'no-cache'
return resp
2020-06-08 23:27:13 +00:00
@bp.route("/pricing")
def pricing():
vm_sizes = get_model().vm_sizes_dict()
operating_systems = get_model().operating_systems_dict()
return render_template(
"pricing.html",
vm_sizes=vm_sizes,
operating_systems=operating_systems
)
2020-06-08 23:27:13 +00:00
@bp.route("/faq")
def faq():
return render_template("faq.html")
2021-01-31 04:14:04 +00:00
@bp.route("/about-ssh")
def about_ssh():
return render_template("about-ssh.html")
2021-12-19 17:36:55 +00:00
@bp.route("/troubleshooting-ssh")
def troubleshooting_ssh():
return render_template("troubleshooting-ssh.html")
@bp.route("/add-ssh-key-to-existing-capsul")
def add_ssh_key_to_existing_capsul():
return render_template("add-ssh-key-to-existing-capsul.html")
@bp.route("/changelog")
def changelog():
return render_template("changelog.html")
@bp.route("/support")
def support():
2020-06-08 23:27:13 +00:00
return render_template("support.html")