Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CategoryRoutes = []models.Route{ {Method: "GET", Pattern: "/health", MiddleWare: nil, HandlerFunc: health}, {Method: "POST", Pattern: "/category/v1/add", MiddleWare: gin.HandlersChain{middlewares.AdminToken}, HandlerFunc: transaction.GormTx(saveCategory)}, {Method: "GET", Pattern: "/statistics/v1/list", MiddleWare: gin.HandlersChain{middlewares.AdminToken}, HandlerFunc: statisticsList}, {Method: "PUT", Pattern: "/category/v1/update", MiddleWare: gin.HandlersChain{middlewares.AdminToken}, HandlerFunc: transaction.GormTx(updateCategory)}, {Method: "GET", Pattern: "/category-tags/v1/:id", MiddleWare: gin.HandlersChain{middlewares.AdminToken}, HandlerFunc: getCategoryTags}, {Method: "GET", Pattern: "/list/v1/category-tags", MiddleWare: gin.HandlersChain{middlewares.AdminToken}, HandlerFunc: getCategoryTagsList}, {Method: "GET", Pattern: "/category/v1/:id", MiddleWare: nil, HandlerFunc: getCategoryTags}, {Method: "GET", Pattern: "/list/v1/category", MiddleWare: nil, HandlerFunc: getCategoryList}, {Method: "DELETE", Pattern: "/category/v1/:id", MiddleWare: gin.HandlersChain{middlewares.AdminToken}, HandlerFunc: transaction.GormTx(deleteCategory)}, }
View Source
var TagsRoutes = []models.Route{ {Method: "GET", Pattern: "/list/v1/tags", MiddleWare: nil, HandlerFunc: getTagsList}, {Method: "GET", Pattern: "/tags-article-quantity/v1/list", MiddleWare: nil, HandlerFunc: getTagsAndArticleQuantityList}, {Method: "GET", Pattern: "/tags/v1/:id", MiddleWare: nil, HandlerFunc: getTags}, {Method: "POST", Pattern: "/tags/v1/add", MiddleWare: gin.HandlersChain{middlewares.AdminToken}, HandlerFunc: transaction.GormTx(saveTags)}, {Method: "PUT", Pattern: "/tags/v1/update", MiddleWare: gin.HandlersChain{middlewares.AdminToken}, HandlerFunc: transaction.GormTx(updateTags)}, {Method: "DELETE", Pattern: "/tags/v1/:id", MiddleWare: gin.HandlersChain{middlewares.AdminToken}, HandlerFunc: transaction.GormTx(deleteTags)}, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.