diff --git a/Gopkg.toml b/Gopkg.toml index 06f9de1cc1842b555420895709f17c6649a07d8a..2765dc95c4e2781e72b81665b540e009a74a56ba 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -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 diff --git a/main.go b/main.go index 5eb042179fe774b0f66d2f2980da5ede32a5db93..24607f0c5836a53e31dc9d27943b4ca418b83450 100644 --- a/main.go +++ b/main.go @@ -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 { diff --git a/types/endpoints.go b/types/endpoints.go new file mode 100644 index 0000000000000000000000000000000000000000..468a874bf704879bf2bb8c92275f97c6dc72f8de --- /dev/null +++ b/types/endpoints.go @@ -0,0 +1,14 @@ +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 +}