io.github.hylexus.jt.dashboard.server.controller.instance.JtInstanceController Maven / Gradle / Ivy
The newest version!
package io.github.hylexus.jt.dashboard.server.controller.instance;
import io.github.hylexus.jt.core.model.value.Resp;
import io.github.hylexus.jt.dashboard.server.model.values.instance.Jt1078Instance;
import io.github.hylexus.jt.dashboard.server.model.values.instance.Jt808Instance;
import io.github.hylexus.jt.dashboard.server.service.ProxyInstanceProvider;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import java.util.Map;
@RestController
@RequestMapping("/api/dashboard/instances")
public class JtInstanceController {
private final ProxyInstanceProvider instanceProvider;
public JtInstanceController(ProxyInstanceProvider instanceProvider) {
this.instanceProvider = instanceProvider;
}
@RequestMapping("/all")
public Resp