File tree 3 files changed +7
-2
lines changed
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 40
40
<PackageReference Update =" Giraffe" Version =" 6.*" />
41
41
<PackageReference Update =" GraphQL.Server.Ui.Playground" Version =" 7.1.*" />
42
42
<PackageReference Update =" GraphQL.Server.Ui.Voyager" Version =" 7.1.*" />
43
+ <PackageReference Update =" HotChocolate.AspNetCore" Version =" 12.16.*" />
43
44
<PackageReference Update =" Iced" Version =" 1.17.*" />
44
45
<PackageReference Update =" Microsoft.CodeCoverage" Version =" 17.3.*" />
45
46
<PackageReference Update =" Microsoft.Diagnostics.NETCore.Client" Version =" 0.2.*" />
Original file line number Diff line number Diff line change 11
11
<PackageReference Include =" Newtonsoft.Json" />
12
12
<PackageReference Include =" GraphQL.Server.Ui.Playground" />
13
13
<PackageReference Include =" GraphQL.Server.Ui.Voyager" />
14
+ <PackageReference Include =" HotChocolate.AspNetCore" />
14
15
</ItemGroup >
15
16
16
17
<ItemGroup >
Original file line number Diff line number Diff line change 1
1
namespace FSharp.Data.GraphQL.Samples.StarWarsApi
2
2
3
3
open Microsoft.AspNetCore .Builder
4
+ open Microsoft.AspNetCore .Http
4
5
open Microsoft.AspNetCore .Server .Kestrel .Core
5
6
open Microsoft.Extensions .Configuration
6
7
open Microsoft.Extensions .DependencyInjection
@@ -26,8 +27,10 @@ type Startup private () =
26
27
clearResponse >=> setStatusCode 500
27
28
28
29
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
31
34
32
35
app
33
36
.UseGiraffeErrorHandler( errorHandler)
You can’t perform that action at this time.
0 commit comments