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

15 lines
227 B
Go
Raw Normal View History

2024-08-28 07:28:34 +00:00
package main
import (
"net/http"
)
func (app *Config) Broker(w http.ResponseWriter, r *http.Request) {
payload := jsonResponse{
Error: false,
Message: "Hit the broker",
}
2024-08-28 08:04:52 +00:00
app.writeJSON(w, http.StatusOK, payload)
2024-08-28 07:28:34 +00:00
}