mirror of
https://github.com/sigmasternchen/Diary
synced 2025-03-15 07:08:56 +00:00
Added /login but it doesn't do anything
This commit is contained in:
parent
befec89120
commit
c453f70d35
1 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env python2.7
|
||||
|
||||
import os
|
||||
from flask import Flask,render_template,abort,redirect,url_for
|
||||
from flask import Flask,render_template,abort,redirect,url_for,request
|
||||
from database import db_session as db
|
||||
|
||||
app=Flask(__name__)
|
||||
|
@ -14,6 +14,10 @@ def err404(err):
|
|||
def index():
|
||||
return render_template('index.html')
|
||||
|
||||
@app.route('/login',methods=['GET','POST','PUT'])
|
||||
def login():
|
||||
return 'login'
|
||||
|
||||
if __name__=='__main__':
|
||||
app.debug=True
|
||||
app.secret_key=os.urandom(64)
|
||||
|
|
Loading…
Reference in a new issue