Skip to content

Commit

Permalink
require redoc
Browse files Browse the repository at this point in the history
  • Loading branch information
hillalex committed Sep 26, 2024
1 parent 3abfbe5 commit f1ad4ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/router.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ build_routes <- function(cookie_key = plumber::random_cookie_key(),
package = "serovizr")),
eval.expr = FALSE)
pr$setApiSpec(api)
require(redoc)
pr$setDocs("redoc")
pr$mount("/schema", PlumberStatic$new(file.path(system.file("schema",
pr$mount("/schema", plumber::PlumberStatic$new(file.path(system.file("schema",
package = "serovizr"))))
pr
}
Expand Down

0 comments on commit f1ad4ab

Please sign in to comment.