package router

const (
	FS_STATIC                   = "static"
	FS_UPLOAD_DROPLET           = "upload_droplet"
	FS_UPLOAD_BUILD_ARTIFACTS   = "upload_build_artifacts"
	FS_DOWNLOAD_BUILD_ARTIFACTS = "download_build_artifacts"
)

func NewFileServerRoutes() Routes {
	return Routes{
		{Path: "/static/", Method: "GET", Handler: FS_STATIC},
		{Path: "/droplet/:guid", Method: "POST", Handler: FS_UPLOAD_DROPLET},
		{Path: "/build_artifacts/:app_guid", Method: "POST", Handler: FS_UPLOAD_BUILD_ARTIFACTS},
		{Path: "/build_artifacts/:app_guid", Method: "GET", Handler: FS_DOWNLOAD_BUILD_ARTIFACTS},
	}
}

package router

const (
	FS_STATIC                   = "static"
	FS_UPLOAD_DROPLET           = "upload_droplet"
	FS_UPLOAD_BUILD_ARTIFACTS   = "upload_build_artifacts"
	FS_DOWNLOAD_BUILD_ARTIFACTS = "download_build_artifacts"
)

func NewFileServerRoutes() Routes {
	return Routes{
		{Path: "/v1/static/", Method: "GET", Handler: FS_STATIC},
		{Path: "/v1/droplet/:guid", Method: "POST", Handler: FS_UPLOAD_DROPLET},
		{Path: "/v1/build_artifacts/:app_guid", Method: "POST", Handler: FS_UPLOAD_BUILD_ARTIFACTS},
		{Path: "/v1/build_artifacts/:app_guid", Method: "GET", Handler: FS_DOWNLOAD_BUILD_ARTIFACTS},
	}
}

Update file server routes with API version
Update file server routes with API version

Signed-off-by: Max Brunsfeld <8ee73e75b50cc292b5052b11f2ca25336d3e974e@pivotallabs.com>
