Skip to content
Snippets Groups Projects
Commit 9145a129 authored by Markin Igor's avatar Markin Igor
Browse files

Add EndPoint type.

parent 09b1babd
No related branches found
No related tags found
1 merge request!4Use webpack for bundling JS libs and move Golang code related to Iframe generation there
......@@ -24,10 +24,6 @@
# go-tests = true
# unused-packages = true
[[constraint]]
branch = "feature-transpile-js-libs"
name = "code.vereign.com/code/restful-api"
[prune]
go-tests = true
unused-packages = true
......@@ -2,6 +2,7 @@ package jslibs
import (
"bytes"
"code.vereign.com/code/vcl/types"
"fmt"
"io/ioutil"
"path/filepath"
......@@ -10,8 +11,6 @@ import (
"strings"
"unicode"
"unicode/utf8"
"code.vereign.com/code/restful-api/types"
)
func GetClientJsLibrary(iframeUrl string) string {
......
package types
import "net/http"
// TODO: this type rather belongs to restful-api, but we have to declare it there and use in restful-api as dependency. Move to separate repository in the future.
type EndPoint struct {
Url string
Prefixes []string
HandlerType string
Form interface{}
ManuallyWritten bool
Handler func(http.ResponseWriter, *http.Request)
DoNotIntercept bool
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment