better htmls

This commit is contained in:
Kenneth Reitz
2013-09-26 20:56:50 -04:00
parent e819c09273
commit 06ee93d269
2 changed files with 3 additions and 7 deletions
-6
View File
@@ -4,7 +4,6 @@ from flask import Flask, request, redirect, url_for, render_template
from converter import meh
app = Flask(__name__)
app.debug = True
@app.route('/')
def fuck_gpl2():
@@ -18,8 +17,3 @@ def fuck_gpl2():
return '404 Not Found', 404
else:
return render_template('index.html')
@app.route('/', methods=['POST', 'PUT'])
def lazy_301():
url = request.form.get('url')
redirect(url_for('fuck_gpl2'), url=url)
+3 -1
View File
@@ -13,7 +13,9 @@ a Markdown representation of that page.</p>
<button type='submit'>Submit</button>
</form>
<p>Enjoy!</p>
<p>A <a href='http://kennethreitz.org/'>Kenneth Reitz</a> project.</p>
<a href="https://github.com/kennethreitz/url2markdown"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
</body>
</html>