rev cat getter by company id

This commit is contained in:
zipfriis
2026-03-25 19:07:57 +01:00
parent e056d8a37e
commit 206954fb75
6 changed files with 79 additions and 33 deletions

View File

@@ -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")