new endpoints

This commit is contained in:
zipfriis
2026-03-25 16:54:46 +01:00
parent 4e5b830e75
commit 52d99c7012
8 changed files with 305 additions and 99 deletions

View File

@@ -35,6 +35,10 @@ func main() {
http.HandleFunc("/health", handlers.HealthHandler(db))
//Trades
http.HandleFunc("POST /trade/add", handlers.AddTradeHandler(db))
http.HandleFunc("GET /trade/list", handlers.GetTradeListHandler(db))
// Company
http.HandleFunc("POST /add/company", handlers.AddCompanyHandler(db))
http.HandleFunc("GET /companies", handlers.GetCompaniesHandler(db))