func (a Controller) searchTrackByName(req gorelax.RelaxRequester, res gorelax.RelaxResponser) { trackName := req.Query("q") res.EnableCORS() res.SendAsJSON(service.SearchTrack(trackName), 200) }
func (a Controller) searchArtistByName(req gorelax.RelaxRequester, res gorelax.RelaxResponser) { artistName := req.Query("q") res.EnableCORS() res.SendAsJSON(service.SearchArtist(artistName), 200) }