summaryrefslogtreecommitdiff
path: root/system/api/server.go
blob: c5c1a2396ce73be90644802b2da39126d06a1cd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package api

import "net/http"

// Run adds Handlers to default http listener for API
func Run() {
	http.HandleFunc("/api/contents", Record(CORS(Gzip(contentsHandler))))

	http.HandleFunc("/api/content", Record(CORS(Gzip(contentHandler))))

	http.HandleFunc("/api/content/external", Record(CORS(externalContentHandler)))
}