diff options
author | JakobDev <jakobdev@gmx.de> | 2023-05-23 12:10:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-23 18:10:23 +0800 |
commit | 25dc1556cd70b567a4920beb002a0addfbfd6ef2 (patch) | |
tree | 7857b6b323818a1b4f84a5b7c128d06bc6aedf2b /routers/api/v1/api.go | |
parent | abcf5a7b5e2c3df951b8048317a99a89b040b489 (diff) | |
download | gitea-25dc1556cd70b567a4920beb002a0addfbfd6ef2.tar.gz gitea-25dc1556cd70b567a4920beb002a0addfbfd6ef2.zip |
Add API for Label templates (#24602)
This adds API that allows getting the Label templates of the Gitea
Instance
Diffstat (limited to 'routers/api/v1/api.go')
-rw-r--r-- | routers/api/v1/api.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index f1e1cf946a..53c58c4b9b 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -723,6 +723,8 @@ func Routes(ctx gocontext.Context) *web.Route { m.Get("/gitignore/templates/{name}", misc.GetGitignoreTemplateInfo) m.Get("/licenses", misc.ListLicenseTemplates) m.Get("/licenses/{name}", misc.GetLicenseTemplateInfo) + m.Get("/label/templates", misc.ListLabelTemplates) + m.Get("/label/templates/{name}", misc.GetLabelTemplate) m.Group("/settings", func() { m.Get("/ui", settings.GetGeneralUISettings) m.Get("/api", settings.GetGeneralAPISettings) |