mirror of
https://github.com/1f349/site-hosting.git
synced 2025-01-20 22:26:37 +00:00
Add a 200 response for GET /
This commit is contained in:
parent
369e43b054
commit
08f94bc260
@ -24,6 +24,10 @@ type apiDB interface {
|
||||
func New(upload *upload.Handler, keyStore *mjwt.KeyStore, db apiDB) *httprouter.Router {
|
||||
router := httprouter.New()
|
||||
|
||||
router.GET("/", func(rw http.ResponseWriter, req *http.Request, params httprouter.Params) {
|
||||
http.Error(rw, "Bluebell API Endpoint", http.StatusOK)
|
||||
})
|
||||
|
||||
// Site upload endpoint
|
||||
router.POST("/u/:site/:branch", upload.Handle)
|
||||
router.POST("/u", func(rw http.ResponseWriter, req *http.Request, _ httprouter.Params) {
|
||||
|
Loading…
Reference in New Issue
Block a user