rev cat getter by company id
This commit is contained in:
6
main.go
6
main.go
@@ -41,14 +41,16 @@ func main() {
|
||||
http.HandleFunc("GET /positions/list", handlers.GetTradeListHandler(db))
|
||||
|
||||
// Company
|
||||
http.HandleFunc("POST /add/company", handlers.AddCompanyHandler(db))
|
||||
http.HandleFunc("GET /companies", handlers.GetCompaniesHandler(db))
|
||||
http.HandleFunc("POST /company/add", handlers.AddCompanyHandler(db))
|
||||
http.HandleFunc("GET /company/list", handlers.GetCompaniesHandler(db))
|
||||
http.HandleFunc("GET /company/revenue/categories", handlers.GetCompanyRevenueCategories(db))
|
||||
|
||||
// Currency
|
||||
http.HandleFunc("GET /currencies", handlers.GetCurrenciesHandler(db))
|
||||
|
||||
// Revenue
|
||||
http.HandleFunc("POST /add/revenue/entry", handlers.AddRevenueEntryHandler(db))
|
||||
|
||||
//http.HandleFunc("GET /revenue/report", handlers.GetRevenueReportHandler(db))
|
||||
|
||||
fmt.Println("Server running on :8080")
|
||||
|
||||
Reference in New Issue
Block a user