routr 1.0.0
- Use native rlang type checking instead of assertthat
- Added the ability to merge two routes or route stacks together
- routes can now be used directly as Fiery plugins
- New tidy api for creating routes and route stacks
- Added
asset_route()
for high performance serving of
static files
- Fixed a bug that would case keys to be lower cased when provided by
the handler (#16)
- The file system path in
ressource_route()
is no longer
expected to be absolute (#18)
- The Content-Type header is now set correctly when serving the
default file in
ressource_route()
(#19)
- Added
openapi_route()
for serving API spec based on an
openapi spec file
- Cleaned up condition handling in the interaction with fiery when
used as a plug-in
- Added
reject_missing_methods
argument to
Route$add_handler()
to automatically catch requests to the
handler path that doesn’t have a matching method and return 405L
- Added
shared_secret_route()
for creating simple shared
secret request rejection
- Added
empty
fields to Route and RouteStack classes
- Added
ignore_trailing_slash
argument to the RouteStack
constructor. It allows the route stack to ignore the trailing slash of
request in different ways
- Add redirection functionality to RouteStack
- wilcard matches to paths are now also provided in the key
argument
- Support returning promises from handlers
- Added
report_route()
to create a route that
automatically renders and serves quarto and rmarkdown files
routr 0.4.1
routr 0.4.0
- Add
get_handler()
method to Route
(#9,
@cpsievert)
- Add
root
field to Route
which will get
appended to all paths before matching to an incomming request
- Add
remap_handlers()
to loop through all handlers and
reassign them based on a user provided function. (#8)
- Added pkgdown site at https://routr.data-imaginist.com
routr 0.3.0
- Add
on_error()
method to modify how errors are handled.
The default is now to return 500
without any body and print
the error message with message()
.
- Modified
on_attach()
method that uses the new logging
system to log route errors.
routr 0.2.0
- First release
- Added classes Request, Response, Route,
and RouteStack