| 123456789101112131415161718 |
- open System
- open Microsoft.AspNetCore.Builder
- open Microsoft.Extensions.Hosting
- [<EntryPoint>]
- let main args =
- let builder = WebApplication.CreateBuilder(args)
- use app = builder.Build()
- if app.Environment.IsDevelopment() then
- app.UseDeveloperExceptionPage() |> ignore
- app.MapGet("/", Func<string>(fun () -> "Hello World!")) |> ignore
- app.Run()
- 0 // Exit code
|