Commit c9877eb 1 parent 9769e52 commit c9877eb Copy full SHA for c9877eb
File tree 1 file changed +12
-9
lines changed
src/Digdir.Domain.Dialogporten.GraphQL
1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -86,17 +86,18 @@ static void BuildAndRun(string[] args)
86
86
87
87
// Graph QL
88
88
. AddGraphQLServer ( )
89
- . AddAuthorization ( )
90
- . AddProjections ( )
91
- . AddFiltering ( )
92
- . AddSorting ( )
93
- . RegisterDbContext < DialogDbContext > ( )
94
- . AddQueryType < DialogQueries > ( )
89
+ . AddAuthorization ( )
90
+ . AddProjections ( )
91
+ . AddFiltering ( )
92
+ . AddSorting ( )
93
+ . RegisterDbContext < DialogDbContext > ( )
94
+ . AddQueryType < DialogQueries > ( )
95
95
. Services
96
96
97
- // Auth
98
- . AddDialogportenAuthentication ( builder . Configuration )
99
- . AddAuthorization ( ) ;
97
+ // Auth
98
+ . AddDialogportenAuthentication ( builder . Configuration )
99
+ . AddAuthorization ( )
100
+ . AddHealthChecks ( ) ;
100
101
101
102
var app = builder . Build ( ) ;
102
103
@@ -115,5 +116,7 @@ static void BuildAndRun(string[] args)
115
116
}
116
117
} ) ;
117
118
119
+ app . MapHealthChecks ( "/healthz" ) ;
120
+
118
121
app . Run ( ) ;
119
122
}
You can’t perform that action at this time.
0 commit comments