aboutsummaryrefslogtreecommitdiffhomepage
path: root/ui/static_javascript.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-09-23 21:02:26 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-09-23 21:02:26 -0700
commit9d08139f4363d3503398002bc82cb3746e3438cf (patch)
treeb09c1efb14445624e4a2771bf8cbcf3a9828ecf9 /ui/static_javascript.go
parent844680e57328034c20a2d2b84bd315b55fee9e23 (diff)
Improve request package and add more unit tests
Diffstat (limited to 'ui/static_javascript.go')
-rw-r--r--ui/static_javascript.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/static_javascript.go b/ui/static_javascript.go
index c52251c..248fae3 100644
--- a/ui/static_javascript.go
+++ b/ui/static_javascript.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
-package ui // import "miniflux.app/ui"
+package ui // import "miniflux.app/ui"
import (
"net/http"
@@ -16,7 +16,7 @@ import (
// Javascript renders application client side code.
func (c *Controller) Javascript(w http.ResponseWriter, r *http.Request) {
- filename := request.Param(r, "name", "app")
+ filename := request.RouteStringParam(r, "name")
if _, found := static.Javascripts[filename]; !found {
html.NotFound(w)
return