diff options
Diffstat (limited to 'src/FundLab.Api/Health.fs')
| -rw-r--r-- | src/FundLab.Api/Health.fs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/FundLab.Api/Health.fs b/src/FundLab.Api/Health.fs new file mode 100644 index 0000000..719446f --- /dev/null +++ b/src/FundLab.Api/Health.fs @@ -0,0 +1,16 @@ +namespace FundLab.Api + +open System.Text.Json + +type HealthResponse = + { + service: string + status: string + } + +module Health = + let payload (serviceName: string) : string = + JsonSerializer.Serialize<HealthResponse> { + service = serviceName + status = "ok" + } |
