From cb7c3b724cfc234d25686b8198359b4bdd39f6ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Veljko=20Tekelerovi=C4=87?= Date: Sat, 29 Feb 2020 20:47:31 +0100 Subject: [PATCH] Added initial routes sceleton --- auth-module.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/auth-module.py b/auth-module.py index 9fd964e..ce08873 100644 --- a/auth-module.py +++ b/auth-module.py @@ -4,6 +4,19 @@ if __name__ == '__main__': app = Flask(__name__) +# ROUTES DEFINITION: +@app.route('/unprotected') +def unprotected(): + return 'This is unprotected area' + +@app.route('/protected') +def protected(): + return 'This is protected area' + +@app.route('/login') +def login(): + return 'You are now logged in' + # start the server if __name__ == '__main__': app.run(debug=True)