diff --git a/views.go b/views.go index 9a917ff01..f0df9eaaa 100644 --- a/views.go +++ b/views.go @@ -19,7 +19,7 @@ import ( var ( // needed for serving favicon from binary assets - faviconFileServer = http.FileServer(newBinaryFileSystem("static")) + faviconFileServer = http.FileServer(newBinaryFileSystem("static/dist")) ) func noCache(c *gin.Context) { diff --git a/views_test.go b/views_test.go index ae2efd7d6..5a3a3061c 100644 --- a/views_test.go +++ b/views_test.go @@ -380,7 +380,7 @@ var staticFileTests = []staticFileTestCase{ code: 200, }, staticFileTestCase{ - path: "/static/unsee.js", + path: "/static/dist/unsee.js", code: 200, }, staticFileTestCase{ @@ -412,7 +412,7 @@ var staticFilePrefixTests = []staticFileTestCase{ code: 200, }, staticFileTestCase{ - path: "/sub/static/unsee.js", + path: "/sub/static/dist/unsee.js", code: 200, }, staticFileTestCase{