aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-registry/api.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2023-02-11 19:53:27 +0100
committerGitHub <noreply@github.com>2023-02-11 19:53:27 +0100
commitf17a4e473c4970af0e476d6ab4d41988a034c3bb (patch)
treedb59ac4400847799cd4b0e85df5d546304ed497d /lua/mason-registry/api.lua
parentchore: update generated code (#980) (diff)
downloadmason-f17a4e473c4970af0e476d6ab4d41988a034c3bb.tar
mason-f17a4e473c4970af0e476d6ab4d41988a034c3bb.tar.gz
mason-f17a4e473c4970af0e476d6ab4d41988a034c3bb.tar.bz2
mason-f17a4e473c4970af0e476d6ab4d41988a034c3bb.tar.lz
mason-f17a4e473c4970af0e476d6ab4d41988a034c3bb.tar.xz
mason-f17a4e473c4970af0e476d6ab4d41988a034c3bb.tar.zst
mason-f17a4e473c4970af0e476d6ab4d41988a034c3bb.zip
refactor(api): %s,\v(api/)repo,\1github (#981)
Diffstat (limited to 'lua/mason-registry/api.lua')
-rw-r--r--lua/mason-registry/api.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/lua/mason-registry/api.lua b/lua/mason-registry/api.lua
index 6f658c83..7d98c7ef 100644
--- a/lua/mason-registry/api.lua
+++ b/lua/mason-registry/api.lua
@@ -45,18 +45,18 @@ local function get(path_template)
end
end
-api.repo = {
+api.github = {
releases = {
---@type ApiSignature<{ repo: string }>
- latest = get "/api/repo/{repo}/releases/latest",
+ latest = get "/api/github/{repo}/releases/latest",
---@type ApiSignature<{ repo: string }>
- all = get "/api/repo/{repo}/releases/all",
+ all = get "/api/github/{repo}/releases/all",
},
tags = {
---@type ApiSignature<{ repo: string }>
- latest = get "/api/repo/{repo}/tags/latest",
+ latest = get "/api/github/{repo}/tags/latest",
---@type ApiSignature<{ repo: string }>
- all = get "/api/repo/{repo}/tags/all",
+ all = get "/api/github/{repo}/tags/all",
},
}