new endpoints
This commit is contained in:
4
main.go
4
main.go
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user