aboutsummaryrefslogtreecommitdiff
path: root/routes/routes.go
diff options
context:
space:
mode:
authorAnirudh Oppiliappan <x@icyphox.sh>2024-07-05 19:49:50 +0300
committerAnirudh Oppiliappan <x@icyphox.sh>2024-07-05 19:49:50 +0300
commit72a658a30f52caf140a555a14c8704448849be97 (patch)
tree2ed4d9f55e265faa683bb864b8a909bc7fe3af17 /routes/routes.go
parentnix: fix docker build (diff)
downloadlegitrx-72a658a30f52caf140a555a14c8704448849be97.tar.gz
legitrx-72a658a30f52caf140a555a14c8704448849be97.tar.zst
legitrx-72a658a30f52caf140a555a14c8704448849be97.zip
routes: ignore files
Diffstat (limited to '')
-rw-r--r--routes/routes.go2
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
}