admin: new route to display import report

This commit is contained in:
nemunaire 2017-12-12 07:11:56 +01:00 committed by Pierre-Olivier Mercier
parent 7676d8ac8f
commit ad5ea6801e
3 changed files with 45 additions and 0 deletions

View file

@ -47,4 +47,11 @@ func init() {
api.Router().GET("/views/*_", func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
http.ServeFile(w, r, path.Join(StaticDir, r.URL.Path))
})
api.Router().GET("/check_import.html", func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
http.ServeFile(w, r, path.Join(StaticDir, "check_import.html"))
})
api.Router().GET("/full_import_report.json", func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
http.ServeFile(w, r, path.Join(StaticDir, "full_import_report.json"))
})
}