mirror of
https://gitea.dmz.rs/Decentrala/freeriders.git
synced 2026-07-13 23:09:28 +02:00
flask init
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
from flask import Flask
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
from freeriders import routes
|
||||
@@ -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'
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user