Commit 482ee74c authored by Kevin Di Lallo's avatar Kevin Di Lallo
Browse files

lint fixes + sandbox-ctrl entrypoint script fix

parent 4530733c
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -37,7 +37,6 @@ type Route struct {
	Method      string
	Pattern     string
	HandlerFunc http.HandlerFunc

}
type Routes []Route

+7 −5
Original line number Diff line number Diff line
@@ -13,11 +13,13 @@ for file in /swagger/*-api.yaml; do
done

# Copy user-swagger & adapt basepath to sandbox
if [[ ! -z "${USER_SWAGGER}" ]]; then
    cp -r ${USER_SWAGGER} ${USER_SWAGGER_SANDBOX}
    for file in ${USER_SWAGGER_SANDBOX}/*-api.yaml; do
        echo "Prepending [${MEEP_SANDBOX_NAME}] to basepath in: $file"
        sed -i 's,basePath: \"/\?,basePath: \"/'${MEEP_SANDBOX_NAME}'/,' $file;
    done
fi

# Update spec links in index.html
# sed -i 's,"url": "\([^"]*\)","url": "'${MEEP_HOST_URL}'/'${MEEP_SANDBOX_NAME}'/api/\1",g' /swagger/index.html
+6 −6

File changed.

Contains only whitespace changes.