Branch
Hash :
f41b906d
Author :
Thomas de Grivel
Date :
2025-04-07T23:34:50
ci
def HTTPd.routes = []
def_route("/rbpkg/", RbpkgController.route)
#def_route("/sitemap.xml", SitemapController.route)
HTTPd.Route.def_static_route("", "static/", 0)
defmodule Route do
def rbpkg = fn {
() { "/rbpkg" }
(repo) { "/rbpkg/#{URL.escape(repo)}" }
(repo, tree) { "/rbpkg/#{URL.escape(repo)}/#{URL.escape(tree)}" }
(repo, tree, host) { "/rbpkg/#{URL.escape(repo)}/#{URL.escape(tree)}/host/#{URL.escape(host)}" }
(repo, tree, host, query) { "/rbpkg/#{URL.escape(repo)}/#{URL.escape(tree)}/host/#{URL.escape(host)}/#{URL.escape(query)}" }
}
end