make_router: [Deprecated] Creates router.

View source: R/router.R

make_routerR Documentation

[Deprecated] Creates router.

Description

Returned callback needs to be called within Shiny server code.

Usage

make_router(default, ..., page_404 = page404())

Arguments

default

Main route to which all invalid routes should redirect.

...

All other routes defined with shiny.router::route function.

page_404

Styling of page when wrong bookmark is open. See page404.

Value

Shiny router callback that should be run in server code with Shiny input and output lists.

Examples

## Not run: 
router <- make_router(
  route("/", root_page),
  route("/other", other_page),
  page_404 = page404(
    message404 = "Please check if you passed correct bookmark name!")
)

## End(Not run)

shiny.router documentation built on April 18, 2023, 9:08 a.m.