Added a route to allow paths in URL and still enable tracking. Fixes #498

pull/482/merge
Jordan Wright 2016-12-26 16:23:07 -06:00
parent 8bb13ad7ee
commit a05ee944a6
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ func CreatePhishingRouter() http.Handler {
router := mux.NewRouter()
router.PathPrefix("/static/").Handler(http.StripPrefix("/static/", http.FileServer(http.Dir("./static/endpoint/"))))
router.HandleFunc("/track", PhishTracker)
router.HandleFunc("/{path:.*}/track", PhishTracker)
router.HandleFunc("/{path:.*}", PhishHandler)
return router
}