move status to health controller
This commit is contained in:
parent
accde5d4e3
commit
439106265f
|
@ -115,7 +115,7 @@ paths:
|
|||
|
||||
/status:
|
||||
get:
|
||||
operationId: spiffworkflow_backend.routes.process_api_blueprint.status
|
||||
operationId: spiffworkflow_backend.routes.health_controller.status
|
||||
summary: Returns 200 if the server is Responding
|
||||
tags:
|
||||
- Liveness
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
"""APIs for dealing with process groups, process models, and process instances."""
|
||||
import json
|
||||
from spiffworkflow_backend.models.process_instance import ProcessInstanceModel
|
||||
import flask.wrappers
|
||||
|
||||
from flask.wrappers import Response
|
||||
|
||||
|
||||
def status() -> flask.wrappers.Response:
|
||||
"""Status."""
|
||||
ProcessInstanceModel.query.filter().first()
|
||||
return Response(json.dumps({"ok": True}), status=200, mimetype="application/json")
|
|
@ -3,7 +3,6 @@ import json
|
|||
from typing import Any
|
||||
from typing import Dict
|
||||
|
||||
import connexion # type: ignore
|
||||
import flask.wrappers
|
||||
import werkzeug
|
||||
from flask import Blueprint
|
||||
|
@ -47,12 +46,6 @@ from spiffworkflow_backend.services.service_task_service import ServiceTaskServi
|
|||
process_api_blueprint = Blueprint("process_api", __name__)
|
||||
|
||||
|
||||
def status() -> flask.wrappers.Response:
|
||||
"""Status."""
|
||||
ProcessInstanceModel.query.filter().first()
|
||||
return Response(json.dumps({"ok": True}), status=200, mimetype="application/json")
|
||||
|
||||
|
||||
def permissions_check(body: Dict[str, Dict[str, list[str]]]) -> flask.wrappers.Response:
|
||||
"""Permissions_check."""
|
||||
if "requests_to_check" not in body:
|
||||
|
|
Loading…
Reference in New Issue