Delete unused folders and files
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
import argparse
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--x', type=int, required=True)
|
||||
parser.add_argument('--y', type=int, required=True)
|
||||
args = parser.parse_args()
|
||||
product = args.x * args.y
|
||||
print(f"{args.x} * {args.y} = {product}")
|
||||
@@ -1,19 +0,0 @@
|
||||
from flask import Flask, render_template, request
|
||||
import requests
|
||||
|
||||
SERVER_URL = "http://127.0.0.1:8000"
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route("/", methods=["GET"])
|
||||
def loginGET():
|
||||
return render_template("login.html")
|
||||
|
||||
@app.route("/", methods=["POST"])
|
||||
def loginPOST():
|
||||
username = request.form["username"]
|
||||
password = request.form["password"]
|
||||
response = requests.get( f"{SERVER_URL}/login?username={username}&password={password}")
|
||||
return render_template("succes.html", data = response.content)
|
||||
|
||||
app.run()
|
||||
@@ -1,17 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Login</title>
|
||||
</head>
|
||||
<body>
|
||||
<form method="post">
|
||||
<label>Username:</label>
|
||||
<input type="text" name="username">
|
||||
<label>Password:</label>
|
||||
<input type="password" name="password">
|
||||
<input type="submit" value="Login">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,11 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>{{data}}</p>
|
||||
</body>
|
||||
</html>
|
||||
13
flask.py
13
flask.py
@@ -1,13 +0,0 @@
|
||||
# Lucas Mathews - Fontys Student ID: 5023572
|
||||
# Banking System Flask App
|
||||
|
||||
from flask import Flask, render_template, request, make_response, redirect
|
||||
|
||||
from config import CONFIG
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route('/')
|
||||
def index():
|
||||
return render_template('bank/index.html')
|
||||
|
||||
Reference in New Issue
Block a user