-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.py
41 lines (25 loc) · 822 Bytes
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
from flask import Flask, render_template, send_file, url_for, redirect
from .database import create_db_and_tables, engine
from sqlmodel import Field, SQLModel, create_engine, Session, select
app = Flask("Fahime Personal website")
@app.route("/")
def my_root():
return render_template("index.html")
@app.route("/home")
def home():
return render_template("index.html")
@app.route("/login")
def login():
return render_template("login.html")
@app.route("/contact")
def contact():
return render_template("contact.html")
@app.route("/register")
def register():
return render_template("register.html")
@app.route("/blog")
def blog():
return render_template("blog.html")
@app.route("/download")
def download():
return send_file('static/fahimecv.pdf', as_attachment=True)