blob: 823ec161656bb419b747cba1ecf27d36a0098d7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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)))
}
|