mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-25 11:22:16 +00:00
Move sdk structs to modules/structs (#6905)
* move sdk structs to moduels/structs * fix tests * fix fmt * fix swagger * fix vendor
This commit is contained in:
parent
1658cd04e9
commit
34eee25bd4
188 changed files with 717 additions and 2144 deletions
|
@ -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})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue