summaryrefslogtreecommitdiff
path: root/src/FundLab.Api/Program.fs
blob: d5cc0b2226d030b5dc27b67aba23b85b6011b934 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module FundLab.Api.Program

open Giraffe
open Microsoft.AspNetCore.Builder
open Microsoft.Extensions.DependencyInjection

[<EntryPoint>]
let main argv =
    let builder = WebApplication.CreateBuilder(argv)
    builder.Services.AddGiraffe() |> ignore

    let app = builder.Build()
    app.UseGiraffe(App.createApplication())
    app.Run()
    0