mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
Fixing health route with jsonify
This commit is contained in:
parent
0b82cc753e
commit
50404266f4
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ from redis import Redis
|
|||
from rq_scheduler import Scheduler
|
||||
from sqlalchemy import create_engine
|
||||
from sqlalchemy.orm import sessionmaker
|
||||
from flask import Flask, render_template, request, redirect, session, abort, url_for
|
||||
from flask import Flask, render_template, request, redirect, session, abort, url_for, jsonify
|
||||
import sentry_sdk
|
||||
from sentry_sdk.integrations.flask import FlaskIntegration
|
||||
from sentry_sdk.integrations.rq import RqIntegration
|
||||
|
@ -589,7 +589,7 @@ def health():
|
|||
"""
|
||||
Shows an ok status if the application is up and running
|
||||
"""
|
||||
return {'status': 'ok'}
|
||||
return jsonify({'status': 'ok'})
|
||||
|
||||
|
||||
def exit_handler():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue