Skip to content

Commit

Permalink
Redirect root to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wkmor1 committed Sep 9, 2024
1 parent dd231a4 commit ed16d68
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions api.R
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,8 @@ function(pr) {

spec[[c("paths", "/healthz")]] <- NULL
spec[[c("paths", "/job")]] <- NULL
spec[[c("paths", "/")]] <- NULL


spec

Expand Down Expand Up @@ -361,6 +363,14 @@ function(pr) {

}

#* @get /
function(res) {

res$status <- 303L
res$setHeader("Location", "/__docs__/")

}

#* @assets ./var/data /data
list()

Expand Down

0 comments on commit ed16d68

Please sign in to comment.