feat: add invoice and alternative_componen management functionality
This commit is contained in:
@@ -129,6 +129,24 @@ func NewRouter() *gin.Engine {
|
||||
invoiceConfigItem.PUT("/:id", utils.AsyncHandler(services.InvoiceConfigItemUpdate))
|
||||
invoiceConfigItem.DELETE("/:id", utils.AsyncHandler(services.InvoiceConfigItemDelete))
|
||||
}
|
||||
|
||||
invoice := v1.Group(constants.API_GROUP_INVOICE)
|
||||
{
|
||||
invoice.GET("", utils.AsyncHandler(services.InvoiceList))
|
||||
invoice.GET("/:id", utils.AsyncHandler(services.InvoiceGetByID))
|
||||
invoice.POST("", utils.AsyncHandler(services.InvoiceCreate))
|
||||
invoice.PUT("/:id", utils.AsyncHandler(services.InvoiceUpdate))
|
||||
invoice.DELETE("/:id", utils.AsyncHandler(services.InvoiceDelete))
|
||||
}
|
||||
|
||||
alternativeComponent := v1.Group(constants.API_GROUP_ALTERNATIVE_COMPONENT)
|
||||
{
|
||||
alternativeComponent.GET("", utils.AsyncHandler(services.AlternativeComponentList))
|
||||
alternativeComponent.GET("/:id", utils.AsyncHandler(services.AlternativeComponentGetByID))
|
||||
alternativeComponent.POST("", utils.AsyncHandler(services.AlternativeComponentCreate))
|
||||
alternativeComponent.PUT("/:id", utils.AsyncHandler(services.AlternativeComponentUpdate))
|
||||
alternativeComponent.DELETE("/:id", utils.AsyncHandler(services.AlternativeComponentDelete))
|
||||
}
|
||||
}
|
||||
|
||||
r.GET(constants.API_PATH_PING, services.PingHandler)
|
||||
|
||||
Reference in New Issue
Block a user