mirror of
https://github.com/kennethreitz/replit-py.git
synced 2026-06-05 15:00:20 +00:00
Use new name of needs_sign_in in example
This commit is contained in:
@@ -4,14 +4,14 @@ app = maqpy.App(__name__)
|
||||
|
||||
|
||||
@app.route("/")
|
||||
@maqpy.needs_signin(login_html=f"Hello! {maqpy.sign_in_snippet}")
|
||||
@maqpy.needs_sign_in(login_html=f"Hello! {maqpy.sign_in_snippet}")
|
||||
def index():
|
||||
return "Index function"
|
||||
|
||||
|
||||
# needs_signin can also be called with no args
|
||||
@app.route("/test")
|
||||
@maqpy.needs_signin
|
||||
@maqpy.needs_sign_in
|
||||
def test():
|
||||
return "Test function"
|
||||
|
||||
Reference in New Issue
Block a user