All Downloads are FREE. Search and download functionalities are using the official Maven repository.

site.zfei.at.coxt.GlobalController Maven / Gradle / Ivy

package site.zfei.at.coxt;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/at/global")
public class GlobalController {

    @GetMapping("/curl/open")
    public String curl(boolean open) {

        Global.printCurl = open;
        return "success set curl open =" + open;
    }

    @GetMapping("/result/open")
    public String result(boolean open) {

        Global.printResult = open;
        return "success set result open =" + open;
    }

    @GetMapping("/header/open")
    public String header(boolean open) {

        Global.printHeader = open;
        return "success set result open =" + open;
    }

    @GetMapping("/curl/path/exclude")
    public String exclude(String path) {

        Global.excludeCurlPaths.add(path);
        return "success exclude curl path =" + path;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy