routes

package
v0.0.0-...-24fa19e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RegisterBookRoutes = func(route *mux.Router) {
	route.HandleFunc("/ready", controllers.HandleGetReady).Methods("GET")
	route.HandleFunc("/create_book", auth.MiddlewareAuth(controllers.HandleCreateBook)).Methods("POST")
	route.HandleFunc("/books", controllers.HandleGetAllBooks).Methods("GET")
	route.HandleFunc("/create_author", auth.MiddlewareAuth(controllers.HandleCreateAuthor)).Methods("POST")
	route.HandleFunc("/authors", controllers.HandleGetAllAuthors).Methods("GET")
	route.HandleFunc("/book/{book_id}", controllers.HandleGetBookByID).Methods("GET")
	route.HandleFunc("/book/{book_id}", auth.MiddlewareAuth(controllers.HandleDeleteBookByID)).Methods("DELETE")
	route.HandleFunc("/users", controllers.HandleCreateUser).Methods("POST")
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL