Skip to content

Commit

Permalink
Added initial routes sceleton
Browse files Browse the repository at this point in the history
  • Loading branch information
vexy committed Feb 29, 2020
1 parent 7f4ee90 commit cb7c3b7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions auth-module.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit cb7c3b7

Please sign in to comment.