Skip to content

Commit

Permalink
Añadida ruta status
Browse files Browse the repository at this point in the history
  • Loading branch information
jserrape committed Jan 23, 2019
1 parent d741b8e commit cb02423
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,15 @@ def about():
respons.status_code = 201
return respons

@app.route('/status')
def status():
respons = {}
respons['status'] = 'OK'
respons['ruta'] = '/status'
respons = jsonify(respons)
respons.status_code = 201
return respons

@app.route('/analize/<post_id>', methods=['GET', 'POST'])
def form(post_id):
resultado = analizar(post_id)
Expand Down

0 comments on commit cb02423

Please sign in to comment.