working commit
This commit is contained in:
@@ -63,7 +63,7 @@ func (svc *Service) Build() error {
|
||||
svc.rout.Use(router.NewCorsMiddleware())
|
||||
svc.rout.Use(svc.hand.AuthMiddleware)
|
||||
|
||||
svc.rout.Get(`/v3/api/service/hello`, svc.hand.GetHello)
|
||||
svc.rout.Post(`/v3/api/service/hello`, svc.hand.GetHello)
|
||||
|
||||
svc.rout.Connect(``, svc.hand.ConnectTo)
|
||||
|
||||
@@ -80,7 +80,7 @@ func (svc *Service) Build() error {
|
||||
svc.logg.Infof("%s\t%s", item.Method, item.RawPath)
|
||||
}
|
||||
|
||||
const useTLS = false
|
||||
const useTLS = true
|
||||
if useTLS {
|
||||
tlsCert, err := tls.X509KeyPair([]byte(svc.x509cert), []byte(svc.x509key))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user