rename
This commit is contained in:
@@ -37,7 +37,7 @@ type WebServer struct {
|
||||
// - perfix
|
||||
// - partyFunc
|
||||
type Party struct {
|
||||
Perfix string
|
||||
Prefix string
|
||||
PartyFunc func(index iris.Party)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user