summaryrefslogtreecommitdiff
path: root/src/FundLab.Api/Health.fs
blob: 719446f381e02bd2bf821626ffe96b4ee58f4ea9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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"
        }