From 317834e446e4fbf9bdcc010e875de87b41a9302d Mon Sep 17 00:00:00 2001 From: Cameron Reed Date: Tue, 1 Oct 2024 13:01:53 -0600 Subject: [PATCH] Minor gitignore adjustment --- .gitignore | 1 - main.go | 1 + static/img/.gitignore | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 static/img/.gitignore diff --git a/.gitignore b/.gitignore index fdc0cb0..e137b98 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ test.db user_dbs/ todo-web -static/img/login/* diff --git a/main.go b/main.go index 59f9353..d1649cc 100644 --- a/main.go +++ b/main.go @@ -69,6 +69,7 @@ func addFrontendEndpoints(mux *http.ServeMux, static_path string) { mux.Handle("/js/", fileServer) mux.Handle("/img/", fileServer) mux.HandleFunc("/img/login.jpg", func(w http.ResponseWriter, r *http.Request) { pages.RandomImage(w, r, path.Join(static_path, "img/login/")) }) + mux.HandleFunc("/img/login/", Error404) } func addBackendEndpoints(mux *http.ServeMux) { diff --git a/static/img/.gitignore b/static/img/.gitignore new file mode 100644 index 0000000..76ce7fc --- /dev/null +++ b/static/img/.gitignore @@ -0,0 +1 @@ +*.jpg