noauth 처리 추가 - config에 division 누락 문제 수정
This commit is contained in:
@ -517,6 +517,8 @@ func (mg *Maingate) RegisterHandlers(ctx context.Context, serveMux *http.ServeMu
|
|||||||
if mg.service().isValidToken(apitokenObj) {
|
if mg.service().isValidToken(apitokenObj) {
|
||||||
convertedConfig["divisions"] = mg.service().Divisions
|
convertedConfig["divisions"] = mg.service().Divisions
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
convertedConfig["divisions"] = mg.service().Divisions
|
||||||
}
|
}
|
||||||
|
|
||||||
enc := json.NewEncoder(w)
|
enc := json.NewEncoder(w)
|
||||||
|
|||||||
Reference in New Issue
Block a user