Skip to content

Commit f8ec9ef

Browse files
committed
Fix #57
1 parent d6f6ec5 commit f8ec9ef

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
`@authScope` and `@authenticator` tags
2020
* Added `@datastore` tag to set up persistent data storage natively in annotated
2121
files
22+
* `api_get()` and other endpoint functions now defaults to using the default
23+
serializers and parsers (#57)
2224

2325
# plumber2 0.1.0
2426

R/Plumber2.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ Plumber2 <- R6Class(
289289
method,
290290
path,
291291
handler,
292-
serializers,
292+
serializers = NULL,
293293
parsers = NULL,
294294
use_strict_serializer = FALSE,
295295
auth_flow = NULL,

R/api_handlers.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ handle_constructor <- function(method, header = FALSE) {
88
api,
99
path,
1010
handler,
11-
serializers = NULL,
12-
parsers = NULL,
11+
serializers = get_serializers(),
12+
parsers = get_parsers(),
1313
use_strict_serializer = FALSE,
1414
download = FALSE,
1515
async = FALSE,

0 commit comments

Comments
 (0)