Minor gitignore adjustment
This commit is contained in:
parent
98d973af6c
commit
317834e446
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,3 @@
|
|||||||
test.db
|
test.db
|
||||||
user_dbs/
|
user_dbs/
|
||||||
todo-web
|
todo-web
|
||||||
static/img/login/*
|
|
||||||
|
1
main.go
1
main.go
@ -69,6 +69,7 @@ func addFrontendEndpoints(mux *http.ServeMux, static_path string) {
|
|||||||
mux.Handle("/js/", fileServer)
|
mux.Handle("/js/", fileServer)
|
||||||
mux.Handle("/img/", 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.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) {
|
func addBackendEndpoints(mux *http.ServeMux) {
|
||||||
|
1
static/img/.gitignore
vendored
Normal file
1
static/img/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.jpg
|
Loading…
Reference in New Issue
Block a user