This commit is contained in:
@@ -18,7 +18,7 @@ import (
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func New(admin *handlers.AdminHandler, comics *handlers.ComicsHandler, media *handlers.MediaHandler, tysc *handlers.TyscHandler, webApp *handlers.WebAppHandler) *gin.Engine {
|
||||
func New(admin *handlers.AdminHandler, bookshelf *handlers.BookshelfHandler, comics *handlers.ComicsHandler, media *handlers.MediaHandler, tysc *handlers.TyscHandler, webApp *handlers.WebAppHandler) *gin.Engine {
|
||||
router := gin.New()
|
||||
router.Use(gin.Recovery())
|
||||
router.Use(gin_slog.SetLogger(
|
||||
@@ -83,6 +83,12 @@ func New(admin *handlers.AdminHandler, comics *handlers.ComicsHandler, media *ha
|
||||
secured.GET("tysc/vendors", tysc.VendorHandler.List)
|
||||
secured.GET("tysc/cardsets", tysc.CardSetHandler.List)
|
||||
secured.GET("tysc/cards", tysc.CardHandler.List)
|
||||
secured.GET("bookshelf/articles", bookshelf.ArticleHandler.List)
|
||||
secured.GET("bookshelf/publishers", bookshelf.BookshelfPublisherHandler.List)
|
||||
secured.GET("bookshelf/books", bookshelf.BookHandler.List)
|
||||
secured.GET("bookshelf/authors", bookshelf.AuthorHandler.List)
|
||||
secured.GET("bookshelf/articleauthors", bookshelf.ArticleAuthorHandler.List)
|
||||
secured.GET("bookshelf/bookauthors", bookshelf.BookAuthorHandler.List)
|
||||
secured.GET("/comics/comics", comics.ComicHandler.List)
|
||||
secured.GET("/comics/publishers", comics.PublisherHandler.List)
|
||||
secured.GET("/comics/artists", comics.ArtistHandler.List)
|
||||
|
||||
Reference in New Issue
Block a user