diff --git a/api/zones.go b/api/zones.go index 3389cb8..bb5bedf 100644 --- a/api/zones.go +++ b/api/zones.go @@ -227,7 +227,7 @@ func serviceIdHandler(c *gin.Context) { // @Router /domains/{domainId}/zone/{zoneId}/{subdomain}/services/{serviceId} [get] func getZoneService(c *gin.Context) { zone := c.MustGet("zone").(*happydns.Zone) - serviceid := c.MustGet("serviceid").([]byte) + serviceid := c.MustGet("serviceid").(happydns.Identifier) subdomain := c.MustGet("subdomain").(string) c.JSON(http.StatusOK, zone.FindSubdomainService(subdomain, serviceid))