implement grpc gateway and addl handler support
This commit is contained in:
@ -9,9 +9,6 @@ import (
|
||||
"gitea.libretechconsulting.com/rmcguire/go-app/pkg/config"
|
||||
)
|
||||
|
||||
// TODO: Make Configurable
|
||||
const GRPC_GW_API_PATH = "/api"
|
||||
|
||||
func (a *App) Done() <-chan any {
|
||||
return a.appDone
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ func (a *App) runGRPC(ctx context.Context) {
|
||||
}
|
||||
|
||||
a.HTTP.Handlers = append(a.HTTP.Handlers, opts.HTTPHandler{
|
||||
Prefix: GRPC_GW_API_PATH,
|
||||
Prefix: a.cfg.GRPC.GRPCGatewayPath,
|
||||
StripPrefix: true,
|
||||
Handler: a.GRPC.GetGatewayMux(),
|
||||
})
|
||||
|
Reference in New Issue
Block a user