summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/misc/version.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/misc/version.go')
-rw-r--r--routers/api/v1/misc/version.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/misc/version.go b/routers/api/v1/misc/version.go
index 20e0a60c72..803f5ac716 100644
--- a/routers/api/v1/misc/version.go
+++ b/routers/api/v1/misc/version.go
@@ -7,7 +7,7 @@ package misc
import (
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/setting"
- "code.gitea.io/sdk/gitea"
+ "code.gitea.io/gitea/modules/structs"
)
// Version shows the version of the Gitea server
@@ -20,5 +20,5 @@ func Version(ctx *context.APIContext) {
// responses:
// "200":
// "$ref": "#/responses/ServerVersion"
- ctx.JSON(200, &gitea.ServerVersion{Version: setting.AppVer})
+ ctx.JSON(200, &structs.ServerVersion{Version: setting.AppVer})
}