Add tests for endpoints
This commit is contained in:
12
pkg/registrar/endpoints.go
Normal file
12
pkg/registrar/endpoints.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package registrar
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func HandleRegister(resp http.ResponseWriter, req *http.Request) {
|
||||
headers := resp.Header()
|
||||
headers.Set("content-type", "application/json")
|
||||
resp.WriteHeader(http.StatusOK)
|
||||
resp.Write([]byte(`{"status": "registered"}`))
|
||||
}
|
||||
Reference in New Issue
Block a user