1 2 3 4 5 6 7 8
package endpoints import "net/http" func RegisterEndpoints() { http.HandleFunc("/api/getSongs", getSongs) http.HandleFunc("/api/getSong", getSong) }