Finish all_pages_sign_in example

This commit is contained in:
Scoder12
2020-07-28 12:04:20 -07:00
parent cb6f9c340b
commit 1fbb3e8d00
2 changed files with 15 additions and 0 deletions
View File
+15
View File
@@ -0,0 +1,15 @@
"""An example of the all_pages_sign_in() feature."""
from replit import maqpy
app = maqpy.App(__name__)
app.all_pages_sign_in(exclude=["/"])
@app.route("/")
def index() -> str:
return "Some introduction " + maqpy.Link("check out my page", href="/page")
@app.route("/page")
def page() -> str:
return "Hello, if you are reading this you signed in."