Fully Working Network Peers
This commit is contained in:
8
main.go
8
main.go
@@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"oc-peer/infrastructure"
|
||||
_ "oc-peer/routers"
|
||||
|
||||
@@ -11,7 +12,12 @@ import (
|
||||
const appname = "oc-peer"
|
||||
|
||||
func main() {
|
||||
oclib.InitAPI(appname)
|
||||
for _, info := range beego.BeeApp.Handlers.GetAllControllerInfo() {
|
||||
fmt.Println(info.GetPattern())
|
||||
}
|
||||
oclib.InitAPI(appname, map[string][]string{
|
||||
"/oc/decentralized/search/:search": {"GET"},
|
||||
})
|
||||
go infrastructure.ListenNATS()
|
||||
beego.Run()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user