Skip to content

Commit

Permalink
removed the splat if check to index.htmlst
Browse files Browse the repository at this point in the history
  • Loading branch information
schloerke committed Oct 16, 2011
1 parent fe72458 commit 225a5bf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions R/route.r
Expand Up @@ -297,11 +297,7 @@ helpr <- function(launch_browser = TRUE, no_internetz = NULL, custom = NULL) {

# Use file in public, if present
router$get("/*", function(splat, ...) {
if (splat == "") {
router$redirect(indexLocation)
} else {
router$static_file(file.path("public", splat))
}
router$static_file(file.path("public", splat))
})

render_path <- function(path, query, ...){
Expand Down

0 comments on commit 225a5bf

Please sign in to comment.