加入网络层
This commit is contained in:
16
Server/Gateway/app/web.go
Normal file
16
Server/Gateway/app/web.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"gateway/config"
|
||||
"gateway/net/http_gateway"
|
||||
)
|
||||
|
||||
func (p *Program) initWebServer(cfg *config.Config) error {
|
||||
p.webServer = http_gateway.InitRouter(cfg)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *Program) stopWebServer() error {
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user