NEWS
routr 0.4.1.9000
- 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
routr 0.4.1 (2022-08-19)
routr 0.4.0 (2019-10-03)
- 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 (2017-10-26)
- 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 (2017-08-22)
- First release
- Added classes Request, Response, Route, and RouteStack