blob: e00d412441263e6e1211cf9517573f147df29703 (
plain) (
tree)
|
|
package routes
import (
"github.com/alexedwards/flow"
"icyphox.sh/legit/config"
)
func Handlers(c *config.Config) *flow.Mux {
mux := flow.New()
d := deps{c}
mux.HandleFunc("/:name", d.RepoIndex, "GET")
mux.HandleFunc("/:name/tree/:ref/...", d.RepoFiles, "GET")
return mux
}
|