Skip to content

Commit

Permalink
Added simple JSON API
Browse files Browse the repository at this point in the history
  • Loading branch information
wInt32 committed Nov 15, 2023
1 parent 2c950b5 commit afb841f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
def hello_world(): # put application's code here
return "Hello TdA"

@app.route('/api')
def api():
return '{"secret":"The cake is a lie"}'


if __name__ == '__main__':
app.run()

0 comments on commit afb841f

Please sign in to comment.