Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using serializer #48

Open
thfuchs opened this issue Feb 12, 2020 · 0 comments
Open

Using serializer #48

thfuchs opened this issue Feb 12, 2020 · 0 comments

Comments

@thfuchs
Copy link

thfuchs commented Feb 12, 2020

I'm currently trying to implement the unboxed serializer for jsonlite::toJSON.

Is this possible with sealr?

I tried

pr$handle(
  "GET",
  "/secret",
  function (req, res) {return("Access to route requiring authentication was successful.")},
  serializer = "unboxedJSON"
)

which results in status 500, message [1] "ERROR: Serializers must be closures: 'unboxedJSON'" when trying to call this with httr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant