Skip to content

Commit 9b68520

Browse files
Added Banana Cake Pop (#3)
1 parent 19290a4 commit 9b68520

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Packages.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
<PackageReference Update="Giraffe" Version="6.*" />
4141
<PackageReference Update="GraphQL.Server.Ui.Playground" Version="7.1.*" />
4242
<PackageReference Update="GraphQL.Server.Ui.Voyager" Version="7.1.*" />
43+
<PackageReference Update="HotChocolate.AspNetCore" Version="12.16.*" />
4344
<PackageReference Update="Iced" Version="1.17.*" />
4445
<PackageReference Update="Microsoft.CodeCoverage" Version="17.3.*" />
4546
<PackageReference Update="Microsoft.Diagnostics.NETCore.Client" Version="0.2.*" />

samples/star-wars-api/FSharp.Data.GraphQL.Samples.StarWarsApi.fsproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<PackageReference Include="Newtonsoft.Json" />
1212
<PackageReference Include="GraphQL.Server.Ui.Playground" />
1313
<PackageReference Include="GraphQL.Server.Ui.Voyager" />
14+
<PackageReference Include="HotChocolate.AspNetCore" />
1415
</ItemGroup>
1516

1617
<ItemGroup>

samples/star-wars-api/Startup.fs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
namespace FSharp.Data.GraphQL.Samples.StarWarsApi
22

33
open Microsoft.AspNetCore.Builder
4+
open Microsoft.AspNetCore.Http
45
open Microsoft.AspNetCore.Server.Kestrel.Core
56
open Microsoft.Extensions.Configuration
67
open Microsoft.Extensions.DependencyInjection
@@ -26,8 +27,10 @@ type Startup private () =
2627
clearResponse >=> setStatusCode 500
2728

2829
if env.IsDevelopment() then
29-
app.UseGraphQLPlayground("/") |> ignore
30-
app.UseGraphQLVoyager("/LaunchUrl") |> ignore
30+
app.UseGraphQLPlayground("/playground") |> ignore
31+
app.UseGraphQLVoyager("/voyager") |> ignore
32+
app.UseRouting() |> ignore
33+
app.UseEndpoints(fun endpoints -> endpoints.MapBananaCakePop(PathString("/cakePop")) |> ignore) |> ignore
3134

3235
app
3336
.UseGiraffeErrorHandler(errorHandler)

0 commit comments

Comments
 (0)