blob: 23ecf7b30025cc7a65ec4aa2151b510084c91a07 (
plain) (
tree)
|
|
package main
import "net/http"
func (app *application) routes() *http.ServeMux {
mux := http.NewServeMux()
fileServer := http.FileServer(http.Dir("./ui/static/"))
mux.Handle("/static/", http.StripPrefix("/static", fileServer))
mux.HandleFunc("/", app.home)
mux.HandleFunc("/organisation/list", app.listOrganisation)
mux.HandleFunc("/organisation/view", app.organisationView)
mux.HandleFunc("/organisation/create", app.organisationCreate)
return mux
}
|