Recreate out of sync file

This commit is contained in:
Scoder12
2020-07-28 11:23:30 -07:00
committed by GitHub
parent bfede7397a
commit fa5fff8156
+16
View File
@@ -0,0 +1,16 @@
"""A basic example of repl auth."""
from replit import maqpy
app = maqpy.App("app")
@app.route("/")
def index():
if maqpy.signed_in:
return "Hello " + maqpy.auth.name
else:
return maqpy.signin() # optionally: simple.sigin(title="My title")
if __name__ == "__main__":
app.run()