Skip to content

Commit

Permalink
re-add submitHistoriesAbility
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed Dec 26, 2024
1 parent 68a4829 commit 3f4d340
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.ghostchu.btn.sparkle.module.ping.ability.impl.CloudRuleAbility;
import com.ghostchu.btn.sparkle.module.ping.ability.impl.ReconfigureAbility;
import com.ghostchu.btn.sparkle.module.ping.ability.impl.SubmitBansAbility;
import com.ghostchu.btn.sparkle.module.ping.ability.impl.SubmitHistoriesAbility;
import com.ghostchu.btn.sparkle.module.ping.dto.BtnBanPing;
import com.ghostchu.btn.sparkle.module.ping.dto.BtnPeerHistoryPing;
import com.ghostchu.btn.sparkle.module.ping.dto.BtnPeerPing;
Expand Down Expand Up @@ -64,6 +65,7 @@ public class PingController extends SparkleController {
private String sparkleRootChina;
@Autowired
private GeoIPManager geoIPManager;
private SubmitHistoriesAbility submitHistoriesAbility;

@PostMapping("/peers/submit")
public ResponseEntity<String> submitPeers(@RequestBody @Validated BtnPeerPing ping) throws AccessDeniedException, UnknownHostException {
Expand Down Expand Up @@ -149,7 +151,7 @@ public ResponseEntity<Object> config() throws AccessDeniedException, JsonProcess
rootObject.put("ability", abilityObject);
//abilityObject.put("submit_peers", submitPeersAbility);
abilityObject.put("submit_bans", submitBansAbility);
//abilityObject.put("submit_histories", submitHistoriesAbility);
abilityObject.put("submit_histories", submitHistoriesAbility);
abilityObject.put("reconfigure", reconfigureAbility);
abilityObject.put("rules", cloudRuleAbility);
auditService.log(req, "BTN_CONFIG", true, audit);
Expand Down

0 comments on commit 3f4d340

Please sign in to comment.