udemy-go-microservices/broker-service/cmd/api/handlers.go

15 lines
227 B
Go

package main
import (
"net/http"
)
func (app *Config) Broker(w http.ResponseWriter, r *http.Request) {
payload := jsonResponse{
Error: false,
Message: "Hit the broker",
}
app.writeJSON(w, http.StatusOK, payload)
}