Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Music Artist Endpoints #60

Merged
merged 18 commits into from
Aug 14, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove auth requirement
  • Loading branch information
Swan committed Aug 11, 2024
commit 2190e38219f7b9d609713df1e2d8917959428dcd
2 changes: 1 addition & 1 deletion cmd/api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ func initializeRoutes(engine *gin.Engine) {

// Artists
engine.POST("/v2/artists", middleware.RequireAuth, handlers.CreateHandler(handlers.InsertMusicArtist))
engine.GET("/v2/artists", middleware.RequireAuth, handlers.CreateHandler(handlers.GetMusicArtists))
engine.POST("/v2/artists/:id", middleware.RequireAuth, handlers.CreateHandler(handlers.UpdateMusicArtist))
engine.GET("/v2/artists", handlers.CreateHandler(handlers.GetMusicArtists)))

engine.NoRoute(func(c *gin.Context) {
c.JSON(http.StatusNotFound, gin.H{"error": "Not found"})
Expand Down