diff options
author | Anirudh Oppiliappan <x@icyphox.sh> | 2024-07-05 19:49:50 +0300 |
---|---|---|
committer | Anirudh Oppiliappan <x@icyphox.sh> | 2024-07-05 19:49:50 +0300 |
commit | 72a658a30f52caf140a555a14c8704448849be97 (patch) | |
tree | 2ed4d9f55e265faa683bb864b8a909bc7fe3af17 /routes/routes.go | |
parent | nix: fix docker build (diff) | |
download | legitrx-72a658a30f52caf140a555a14c8704448849be97.tar.gz legitrx-72a658a30f52caf140a555a14c8704448849be97.tar.zst legitrx-72a658a30f52caf140a555a14c8704448849be97.zip |
routes: ignore files
Diffstat (limited to 'routes/routes.go')
-rw-r--r-- | routes/routes.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/routes.go b/routes/routes.go index 8813baa..327e7b4 100644 --- a/routes/routes.go +++ b/routes/routes.go @@ -40,7 +40,7 @@ func (d *deps) Index(w http.ResponseWriter, r *http.Request) { infos := []info{} for _, dir := range dirs { - if d.isIgnored(dir.Name()) { + if !dir.IsDir() || d.isIgnored(dir.Name()) { continue } |