master
Matt Huntington 3 years ago
commit a2fb06b600

@ -0,0 +1,14 @@
from flask import Flask, render_template, request
app = Flask(__name__)
@app.get("/")
def show():
return render_template('show.html')
@app.post("/")
def create():
return {
'title':request.form['title'],
'description':request.form['description']
}

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css">
</head>
<body>
<ul>
<li>
</li>
</ul>
<form action="/" method="POST">
<input name="title" type="text">
<textarea name="description"></textarea>
<input type="submit"/>
</form>
</body>
</html>
Loading…
Cancel
Save