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)