blob: 7e3aabd53f8313eea6ed564e237504382e28ed3c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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)
return mux
}
|