flask init

This commit is contained in:
fram3d
2023-10-03 20:25:35 +02:00
parent b833ac96ea
commit aba3a484b7
11 changed files with 101 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
from flask import Flask
app = Flask(__name__)
from freeriders import routes
+10
View File
@@ -0,0 +1,10 @@
from flask import render_template, request, redirect
from freeriders import app
@app.route('/', methods=['POST', 'GET'])
def changepassword():
if request.method == 'GET':
return render_template('index.html')
elif request.method == 'POST':
else:
return 'HTTP request method not recogniezed'
+14
View File
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/styles/style.css">
<link rel="shortcut icon" href="/img/favicon.ico" type="image/x-icon">
<title>Ticket tracking</title>
</head>
<body>
<main>
</main>
</body>
</html>