We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6fd65e commit 78535baCopy full SHA for 78535ba
demo-apps/MinimalApp/Program.fs
@@ -5,6 +5,10 @@ open Giraffe
5
let builder = WebApplication.CreateBuilder()
6
builder.Services.AddGiraffe() |> ignore
7
let app = builder.Build()
8
+let webApp =
9
+ choose [
10
+ route "/ping" >=> text "pong"
11
+ route "/" >=> text "Hello World" ]
12
-app.UseGiraffe(text "Hello World!")
13
+app.UseGiraffe(webApp)
14
app.Run()
0 commit comments