change api endpoint routes
This commit is contained in:
@@ -21,7 +21,7 @@ func NewArtistHandler(repo repository.ArtistRepository) *ArtistHandler {
|
||||
// @Produce json
|
||||
// @Success 200 {array} map[string]interface{}
|
||||
// @Failure 500 {object} ErrorResponse
|
||||
// @Router /artist/getAll [get]
|
||||
// @Router /api/v1/artists [get]
|
||||
func (handler *ArtistHandler) GetAll(c *gin.Context) {
|
||||
artists, err := handler.repo.GetAll(c.Request.Context())
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user