diff options
author | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-11 12:29:50 +0530 |
---|---|---|
committer | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-11 12:29:50 +0530 |
commit | 6857a2f002358c47f588c8417482a5afd01725d0 (patch) | |
tree | 2c094a301a2730ffb8997889b53038f631a3ee79 /routes/handler.go | |
parent | d62fb1442bc300dcee2a7c6a9c374201ba1c7ae6 (diff) | |
download | legit-6857a2f002358c47f588c8417482a5afd01725d0.tar.gz legit-6857a2f002358c47f588c8417482a5afd01725d0.tar.bz2 legit-6857a2f002358c47f588c8417482a5afd01725d0.zip |
routes: split repo index and files views
Diffstat (limited to 'routes/handler.go')
-rw-r--r-- | routes/handler.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/handler.go b/routes/handler.go index 13e4ae4..e00d412 100644 --- a/routes/handler.go +++ b/routes/handler.go @@ -8,7 +8,7 @@ import ( func Handlers(c *config.Config) *flow.Mux { mux := flow.New() d := deps{c} - mux.HandleFunc("/:name", d.Repo, "GET") - mux.HandleFunc("/:name/tree/...", d.Repo, "GET") + mux.HandleFunc("/:name", d.RepoIndex, "GET") + mux.HandleFunc("/:name/tree/:ref/...", d.RepoFiles, "GET") return mux } |