blob: 70add10f6f20c53ad5430536501a6089260cbb70 (
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(postsHandler)))
http.HandleFunc("/api/content", CORS(Record(postHandler)))
http.HandleFunc("/api/content/external", CORS(Record(externalPostHandler)))
}
|