15 lines
227 B
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)
|
|
}
|