Skip to contents

routr (development version)

  • Use native rlang type checking instead of assertthat
  • Added the ability to merge two routes 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)

routr 0.4.1

CRAN release: 2022-08-19

  • General upkeep

routr 0.4.0

CRAN release: 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

CRAN release: 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

CRAN release: 2017-08-22

  • First release
  • Added classes Request, Response, Route, and RouteStack