Minor gitignore adjustment

This commit is contained in:
Cameron Reed 2024-10-01 13:01:53 -06:00
parent 98d973af6c
commit 317834e446
3 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,4 +1,3 @@
test.db
user_dbs/
todo-web
static/img/login/*

View File

@ -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) {

1
static/img/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.jpg