File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,6 @@ public class WidgetController$Route implements WebRoutes {
159
159
});
160
160
161
161
}
162
-
163
162
}
164
163
```
165
164
@@ -190,7 +189,6 @@ public class WidgetController$Route implements Service {
190
189
private void _getAll (ServerRequest req , ServerResponse res ) {
191
190
res. send(controller. getAll());
192
191
}
193
-
194
192
}
195
193
```
196
194
@@ -224,7 +222,6 @@ public class WidgetController$Route implements HttpService {
224
222
var result = controller. getAll();
225
223
res. send(result);
226
224
}
227
-
228
225
}
229
226
```
230
227
@@ -264,7 +261,6 @@ public class WidgetController$Route implements WebRoutes {
264
261
});
265
262
266
263
}
267
-
268
264
}
269
265
```
270
266
@@ -303,9 +299,8 @@ public class WidgetController$Route implements HttpService {
303
299
private void _getAll (ServerRequest req , ServerResponse res ) {
304
300
var pathParams = req. path(). pathParameters();
305
301
var result = controller. getAll();
306
- res. headers(). contentType(io.helidon.common.http . HttpMediaType. APPLICATION_JSON );
307
- listWidgetJsonType. toJson(result, res . outputStream( ));
302
+ res. headers(). contentType(HttpMediaType . APPLICATION_JSON );
303
+ listWidgetJsonType. toJson(result, JsonOutput . of(res ));
308
304
}
309
-
310
305
}
311
306
```
You can’t perform that action at this time.
0 commit comments