diff options
Diffstat (limited to 'Aamukampa.Web/Program.fs')
| -rw-r--r-- | Aamukampa.Web/Program.fs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Aamukampa.Web/Program.fs b/Aamukampa.Web/Program.fs new file mode 100644 index 0000000..831d8a8 --- /dev/null +++ b/Aamukampa.Web/Program.fs @@ -0,0 +1,23 @@ +open Microsoft.AspNetCore.Builder +open Microsoft.Extensions.Hosting +open Falco +open Falco.Routing +open TJLaskuri.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 |
