blob: 816bc21f3e0dcb7eb7a838be3b46c7e4e18d5433 (
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(typesHandler))
http.HandleFunc("/api/posts", CORS(postsHandler))
http.HandleFunc("/api/post", CORS(postHandler))
http.HandleFunc("/api/external/posts", CORS(externalPostsHandler))
}
|