Beispiel #1
0
func (a Controller) searchArtistByName(req gorelax.RelaxRequester, res gorelax.RelaxResponser) {
	artistName := req.Query("q")
	res.EnableCORS()
	res.SendAsJSON(service.SearchArtist(artistName), 200)
}
Beispiel #2
0
func (a Controller) searchTrackByName(req gorelax.RelaxRequester, res gorelax.RelaxResponser) {
	trackName := req.Query("q")
	res.EnableCORS()
	res.SendAsJSON(service.SearchTrack(trackName), 200)
}
Beispiel #3
0
func (a Controller) buildAudio(req gorelax.RelaxRequester, res gorelax.RelaxResponser) {
	//service.CrawlAlbums()
	res.Send("Not Required!", 200)
}