Add income routes
This commit is contained in:
parent
94b933031f
commit
9cf82d5301
|
@ -70,6 +70,13 @@ func main() {
|
|||
debtRoutes.PUT("/edit/:id", handlers.DebtPutId)
|
||||
debtRoutes.DELETE("/delete/:id", handlers.DebtDeleteId)
|
||||
}
|
||||
incomeRoutes := api.Group("/income", middleware.AuthMiddleware())
|
||||
{
|
||||
incomeRoutes.POST("/add", handlers.IncomeAdd)
|
||||
incomeRoutes.GET("/:id", handlers.IncomeGetId)
|
||||
incomeRoutes.PUT("/edit/:id", handlers.IncomePutId)
|
||||
incomeRoutes.DELETE("/delete/:id", handlers.IncomeDeleteId)
|
||||
}
|
||||
}
|
||||
|
||||
r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
|
||||
|
|
Loading…
Reference in New Issue
Block a user