mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-10-30 18:15:59 +01:00
Compare commits
1 Commits
revert_pul
...
meta_api
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
753403b4c8 |
@@ -100,4 +100,16 @@ trait ApiControllerBase extends ControllerBase {
|
|||||||
get("/api/v3/gitbucket/plugins") {
|
get("/api/v3/gitbucket/plugins") {
|
||||||
PluginRegistry().getPlugins().map { ApiPlugin(_) }
|
PluginRegistry().getPlugins().map { ApiPlugin(_) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* https://docs.github.com/en/enterprise-server@2.21/rest/reference/meta#get-github-enterprise-server-meta-information
|
||||||
|
*/
|
||||||
|
get("/api/v3/meta") {
|
||||||
|
JsonFormat(
|
||||||
|
Map(
|
||||||
|
"https://api.github.com/meta" -> context.loginAccount.isDefined,
|
||||||
|
"installed_version" -> "2.21.0"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user