Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RegisterAuthRoutes = func(router *mux.Router) { router.HandleFunc("/login", controllers.Login).Methods("POST") router.HandleFunc("/signup", controllers.CreateUser).Methods("POST") router.HandleFunc("/refresh_token", controllers.RefreshToken).Methods("POST") }
View Source
var RegisterBookStoreRoutes = func(router *mux.Router) { router.HandleFunc("/book/", controllers.CreateBook).Methods("POST") router.HandleFunc("/book/", controllers.GetBook).Methods("GET") router.HandleFunc("/book/{bookId}", controllers.GetBookById).Methods("GET") router.HandleFunc("/book/{bookId}", controllers.UpdateBook).Methods("PUT") router.HandleFunc("/book/{bookId}", controllers.DeleteBook).Methods("DELETE") }
View Source
var RegisterUserRoutes = func(router *mux.Router) { router.HandleFunc("/user/", controllers.GetBook).Methods("GET") router.HandleFunc("/user/{userId}", controllers.GetUserById).Methods("GET") router.HandleFunc("/user/{userId}", controllers.UpdateUser).Methods("PUT") router.HandleFunc("/user/{userId}", controllers.DeleteUser).Methods("DELETE") }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.