Refactored services, rest and rdbms

Added tests

Added ac to routes and functions

Proxy processer and auth servicer

Added options and extensive logging

Fixed calls to rbac in service, added default http handler on gateway root
This commit is contained in:
Peter Grlica
2021-08-11 17:25:10 +02:00
parent 9fe52398a9
commit da9100287c
64 changed files with 3959 additions and 1951 deletions
+2 -2
View File
@@ -108,8 +108,8 @@ func (app *CortezaApp) mountHttpRoutes(r chi.Router) {
// temp api gateway support
{
apigw.Setup(struct{}{}, app.Log, service.DefaultStore)
r.Route("/gateway", apigw.Service().Router(context.Background()))
apigw.Setup(options.Apigw(), service.DefaultLogger, service.DefaultStore)
r.Route("/gateway", apigw.Service().Router)
}
var fullpathDocs = options.CleanBase(ho.BaseUrl, ho.ApiBaseUrl, "docs")