1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
10 func RESTHandler(rpc RPCService) http.Handler {
11 mux := http.NewServeMux()
12 mux.HandleFunc("/builtinurl_enable", func(w http.ResponseWriter, req *http.Request) {
13 var request = new(BuiltinurlEnable)
14 reply, err := rpc.BuiltinurlEnable(req.Context(), request)
16 http.Error(w, "request failed: "+err.Error(), http.StatusInternalServerError)
19 rep, err := json.MarshalIndent(reply, "", " ")
21 http.Error(w, "marshal failed: "+err.Error(), http.StatusInternalServerError)
26 return http.HandlerFunc(mux.ServeHTTP)