From d81f068eba36faa024743990cf837ce98c0d9fd1 Mon Sep 17 00:00:00 2001 From: nemunaire Date: Tue, 12 Dec 2017 07:11:56 +0100 Subject: [PATCH] admin: new route to display import report --- admin/.gitignore | 1 + admin/static.go | 7 +++++++ admin/static/check_import.html | 37 ++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 admin/static/check_import.html diff --git a/admin/.gitignore b/admin/.gitignore index e2c3cd5d..0ccbc66d 100644 --- a/admin/.gitignore +++ b/admin/.gitignore @@ -2,3 +2,4 @@ admin fic.db PKI/ FILES/ +static/full_import_report.json diff --git a/admin/static.go b/admin/static.go index 9d1bb918..aaeb89aa 100644 --- a/admin/static.go +++ b/admin/static.go @@ -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")) + }) } diff --git a/admin/static/check_import.html b/admin/static/check_import.html new file mode 100644 index 00000000..0a88d23a --- /dev/null +++ b/admin/static/check_import.html @@ -0,0 +1,37 @@ + + + + Rapport d'import FIC + + + + + + +

Rapport d'import FIC

+
+ + +