Skip to content
Snippets Groups Projects
Commit 69c7e211 authored by Emanuele Laface's avatar Emanuele Laface
Browse files

fix endpoint health

parent ea17b520
No related branches found
No related tags found
No related merge requests found
Pipeline #59084 passed
...@@ -4,6 +4,7 @@ import epics ...@@ -4,6 +4,7 @@ import epics
import time import time
import requests import requests
from fastapi import FastAPI from fastapi import FastAPI
from fastapi.responses import PlainTextResponse
import dateutil.parser import dateutil.parser
import datetime import datetime
from epicsarchiver import ArchiverAppliance from epicsarchiver import ArchiverAppliance
...@@ -23,7 +24,7 @@ executor = ThreadPoolExecutor(max_workers=10) ...@@ -23,7 +24,7 @@ executor = ThreadPoolExecutor(max_workers=10)
@app.get("/-/health") @app.get("/-/health")
async def heath(): async def heath():
return "OK" return PlainTextResponse("OK")
@app.get("/api/v1/caget/{pvlist}") @app.get("/api/v1/caget/{pvlist}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment