routes

package
v0.0.0-...-c75daa8 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RegisterRoutes = func(router *mux.Router) {
	router.HandleFunc("/orders", controllers.GetOrders).Methods("GET")
	router.HandleFunc("/orders", controllers.CreateOrder).Methods("POST")
	router.HandleFunc("/orders/{id}", controllers.GetOrderById).Methods("GET")
	router.HandleFunc("/orders/{id}", controllers.UpdateOrder).Methods("PUT")
	router.HandleFunc("/orders/{id}", controllers.DeleteOrder).Methods("DELETE")
}

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