feat(cpone): migrate lab registration endpoints
This commit is contained in:
@@ -18,7 +18,7 @@ type MappingHargaData struct {
|
||||
DetailLayanan []repository.TarifLayanan `json:"DetailLayanan"`
|
||||
}
|
||||
|
||||
func WriteJSON(w http.ResponseWriter, statusCode int, payload Response) {
|
||||
func WriteJSON(w http.ResponseWriter, statusCode int, payload any) {
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
w.WriteHeader(statusCode)
|
||||
_ = json.NewEncoder(w).Encode(payload)
|
||||
|
||||
Reference in New Issue
Block a user