base structure

This commit is contained in:
ctengiz
2024-04-15 10:00:31 +03:00
parent 19d9d24530
commit 61f5f8fe04
21 changed files with 846 additions and 55 deletions

View File

@@ -62,7 +62,12 @@ func HttpHandler(re enums.TRunEnv) http.Handler {
// Handle valid / invalid tokens.
r.Use(nauth.CheckTokenValidity)
r.Get("/sy/companies", napi.CompanyList)
// company routes
r.Get("/company/{id:[0-9]+}", companyGet)
r.Get("/company", companyList)
r.Put("/company", companyUpdate)
r.Post("/company", companyCreate)
r.Delete("/company/{id:[0-9]+}", companyDelete)
})
})