blob: f31a748182acbbf485079047afd385f326975402 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package api
import "net/http"
// Run adds Handlers to default http listener for API
func Run() {
http.HandleFunc("/api/types", CORS(Record(typesHandler)))
http.HandleFunc("/api/contents", CORS(Record(contentsHandler)))
http.HandleFunc("/api/content", CORS(Record(contentHandler)))
http.HandleFunc("/api/content/external", CORS(Record(externalContentHandler)))
}
|