diff --git a/gserver/main.go b/gserver/main.go index c5a83d0..804ee69 100644 --- a/gserver/main.go +++ b/gserver/main.go @@ -54,16 +54,21 @@ func initRouter() *gin.Engine { // API Version: v3 v3 := api.Group("/v3") { + v3.GET("/authors", apiv3.GetAuthors) + v3.GET("/authors/:aid", apiv3.GetAuthors) v3.GET("/author/:aid/tests", apiv3.GetAuthorTests) v3.GET("/author/:aid/lets-plays", apiv3.GetAuthorLps) - v3.GET("/authors/*aid", apiv3.GetAuthors) - v3.GET("/tests/*tid", apiv3.GetTests) + v3.GET("/tests", apiv3.GetTests) + v3.GET("/tests/:tid", apiv3.GetTests) - v3.GET("/lets-play/:lid/episodes/*eid", apiv3.GetLpEpisodes) - v3.GET("/lets-plays/*lid", apiv3.GetLps) + v3.GET("/lets-plays", apiv3.GetLps) + v3.GET("/lets-plays/:lid", apiv3.GetLps) + v3.GET("/lets-play/:lid/episodes", apiv3.GetLpEpisodes) + v3.GET("/lets-play/:lid/episodes/:eid", apiv3.GetLpEpisodes) - v3.GET("/recent/*limit", apiv3.GetRecent) + v3.GET("/recent", apiv3.GetRecent) + v3.GET("/recent/:limit", apiv3.GetRecent) v3.GET("/search/:type/:query", apiv3.GetSearch) } return router