Returns a plumber router whose default serializer is spigot_json().
Usage
spigot_api(file = NULL, envir = parent.frame())Details
plumber copies the default serializer into each endpoint when the endpoint
is created. So to get spigot_json() for endpoints you add in code, start
from spigot_api() and pipe them in. Endpoints in a plumber file pick it up
too. Endpoints that declare their own serializer (for example
#* @serializer octet) keep it.