This commit is contained in:
yan.y
2024-04-08 12:02:09 +08:00
parent d1d8c89976
commit 5421ae8a87
8 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ type WebServer struct {
// - perfix
// - partyFunc
type Party struct {
Perfix string
Prefix string
PartyFunc func(index iris.Party)
}
+1 -1
View File
@@ -40,7 +40,7 @@ func (ws *WebServer) InitRouter() error {
}
for _, party := range ws.parties {
app.PartyFunc(party.Perfix, party.PartyFunc)
app.PartyFunc(party.Prefix, party.PartyFunc)
}
}