mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 11:36:16 +00:00
Fix template headers
Add test route for uploading images
This commit is contained in:
parent
c3096a8ca3
commit
29d204f95e
6 changed files with 80 additions and 26 deletions
17
app.py
17
app.py
|
@ -1,11 +1,11 @@
|
|||
print("""
|
||||
___ _ _
|
||||
/ _ \ _ __ | |_ _| | ___ __ _ ___
|
||||
| | | | '_ \| | | | | | / _ \/ _` / __|
|
||||
| |_| | | | | | |_| | |__| __/ (_| \__ \
|
||||
\___/|_| |_|_|\__, |_____\___|\__, |___/
|
||||
/ _ \\ _ __ | |_ _| | ___ __ _ ___
|
||||
| | | | '_ \\| | | | | | / _ \\/ _` / __|
|
||||
| |_| | | | | | |_| | |__| __/ (_| \\__ \\
|
||||
\\___/|_| |_|_|\\__, |_____\\___|\\__, |___/
|
||||
|___/ |___/
|
||||
Created by Fluffy Bean - Version 080123
|
||||
Created by Fluffy Bean - Version 100123
|
||||
""")
|
||||
|
||||
# Import base packages
|
||||
|
@ -91,6 +91,13 @@ def group_id(group_id):
|
|||
def upload():
|
||||
return render_template('upload.html')
|
||||
|
||||
@app.route('/upload/form', methods=['POST'])
|
||||
def upload_form():
|
||||
if request.method != 'POST':
|
||||
abort(405)
|
||||
|
||||
return 'balls'
|
||||
|
||||
@app.route('/profile')
|
||||
def profile():
|
||||
return render_template('profile.html', user_id='gwa gwa')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue