diff --git a/controllers/route.go b/controllers/route.go index 5f350238..257663fc 100644 --- a/controllers/route.go +++ b/controllers/route.go @@ -84,7 +84,7 @@ func CreateAdminRouter() http.Handler { // CreatePhishingRouter creates the router that handles phishing connections. func CreatePhishingRouter() http.Handler { router := mux.NewRouter() - router.PathPrefix("/static").Handler(http.FileServer(http.Dir("./static/endpoint/"))) + router.PathPrefix("/static/").Handler(http.StripPrefix("/static/", http.FileServer(http.Dir("./static/endpoint/")))) router.HandleFunc("/track", PhishTracker) router.HandleFunc("/{path:.*}", PhishHandler) return router diff --git a/static/endpoint/.gitignore b/static/endpoint/.gitignore new file mode 100644 index 00000000..5e7d2734 --- /dev/null +++ b/static/endpoint/.gitignore @@ -0,0 +1,4 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore diff --git a/static/gophish_user_guide.pdf b/static/gophish_user_guide.pdf index b6aa4606..0b7e7145 100644 Binary files a/static/gophish_user_guide.pdf and b/static/gophish_user_guide.pdf differ