diff --git a/api/router/api/api.go b/api/router/api/api.go index 44f7c5ba..459473c6 100644 --- a/api/router/api/api.go +++ b/api/router/api/api.go @@ -123,12 +123,9 @@ func Register(r *server.Hertz) { _url.GET("/settings.php", append(_getsettingMw(), api.GetSetting)...) _url.POST("/test", append(_gettestMw(), api.GetTest)...) _url.POST("/upload", append(_uploadversionMw(), api.UploadVersion)...) + _url.POST("/upload-params", append(_uploadparamsMw(), api.UploadParams)...) _url.GET("/version.json", append(_getreleaseversionMw(), api.GetReleaseVersion)...) _url.GET("/versionbeta.json", append(_getbetaversionMw(), api.GetBetaVersion)...) - { - _api0 := _url.Group("/api", _api0Mw()...) - _api0.POST("/upload-params", append(_uploadparamsMw(), api.UploadParams)...) - } } } } diff --git a/idl/api.thrift b/idl/api.thrift index 47d58d69..46defc6d 100644 --- a/idl/api.thrift +++ b/idl/api.thrift @@ -407,7 +407,7 @@ struct GetDumpResponse{ service UrlService{ LoginResponse Login(1:LoginRequest req)(api.post="/api/v2/url/login") UploadResponse UploadVersion(1:UploadRequest req)(api.post="/api/v2/url/upload") - UploadParamsResponse UploadParams(1:UploadParamsRequest req)(api.post="/api/v2/url/api/upload-params") + UploadParamsResponse UploadParams(1:UploadParamsRequest req)(api.post="/api/v2/url/upload-params") DownloadReleaseApkResponse DownloadReleaseApk(1:DownloadReleaseApkRequest req)(api.get="/api/v2/url/release.apk") DownloadBetaApkResponse DownloadBetaApk(1:DownloadBetaApkRequest req)(api.get="/api/v2/url/beta.apk") GetReleaseVersionResponse GetReleaseVersion(1:GetReleaseVersionRequest req)(api.get="/api/v2/url/version.json")