mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 02:12:19 +00:00
Merge pull request #153 from movableink/js-in-external-files
JS in external files
This commit is contained in:
@@ -117,6 +117,7 @@ func setupDatabase() {
|
||||
func setupStatic() {
|
||||
box := rice.MustFindBox("assets")
|
||||
http.Handle("/css/", http.FileServer(box.HTTPBox()))
|
||||
http.Handle("/js/", http.FileServer(box.HTTPBox()))
|
||||
|
||||
// we need to intercept all attempts to serve images
|
||||
// so that we can add a cache-control settings
|
||||
|
Reference in New Issue
Block a user