new readme
This commit is contained in:
6
main.go
6
main.go
@@ -33,7 +33,11 @@ func main() {
|
||||
fmt.Println("Connected to SQLite database")
|
||||
|
||||
http.HandleFunc("/health", handlers.HealthHandler(db))
|
||||
http.HandleFunc("/add/company", handlers.AddCompanyHandler(db))
|
||||
http.HandleFunc("POST /add/company", handlers.AddCompanyHandler(db))
|
||||
/*
|
||||
http.HandleFunc("GET /companies", handlers.AddCompanyHandler(db))
|
||||
http.HandleFunc("GET /currencies", handlers.AddCompanyHandler(db))
|
||||
*/
|
||||
|
||||
fmt.Println("Server running on :8080")
|
||||
go func() {
|
||||
|
||||
Reference in New Issue
Block a user