aboutsummaryrefslogtreecommitdiff
path: root/Aamukampa.Web/Program.fs
blob: 92ff8009b34113687d930d16f13629aa6ac4b2d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
open Microsoft.AspNetCore.Builder
open Microsoft.Extensions.Hosting
open Falco
open Falco.Routing
open Aamukampa.Web.Modules

let endpoints = [
        get "/" Index.get
    ]

[<EntryPoint>]
let main args =
    let builder = WebApplication.CreateBuilder(args)
    let app = builder.Build()

    app.MapStaticAssets() |> ignore

    app
        .UseRouting()
        .UseFalco(endpoints)
        .Run()

    0 // Exit code