This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
2017-03-25 16:09:17 +01:00
|
|
|
package http
|
|
|
|
|
|
|
|
import (
|
|
|
|
goji "goji.io"
|
|
|
|
"goji.io/pat"
|
|
|
|
)
|
|
|
|
|
|
|
|
func BindAPI(router *goji.Mux) {
|
2017-03-30 18:43:18 +02:00
|
|
|
router.HandleFunc(pat.Get("/api/status"), status)
|
2017-03-30 19:05:33 +02:00
|
|
|
router.HandleFunc(pat.Get("/api/review/:productid"), listReview)
|
2017-03-25 16:09:17 +01:00
|
|
|
}
|