Skip to content

Commit cee1604

Browse files
committed
Change repo list route
Having it start with /repo* is conflicting with something in the nginx config, causing nginx to return a 403 and not hit the app. So this changes the path to /list-repo to avoid that.
1 parent 2a1304c commit cee1604

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/clojars/routes/repo_listing.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
(defn routes
1616
[repo-bucket]
1717
(compojure/routes
18-
(GET ["/repo-listing"]
18+
(GET ["/list-repo"]
1919
{{:keys [path]} :params}
2020
(repo-listing repo-bucket path))
21-
(HEAD ["/repo-listing"]
21+
(HEAD ["/list-repo"]
2222
{{:keys [path]} :params}
2323
(repo-listing repo-bucket path))))

0 commit comments

Comments
 (0)