summaryrefslogtreecommitdiffstats
path: root/modules/private/manager.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/private/manager.go')
-rw-r--r--modules/private/manager.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/private/manager.go b/modules/private/manager.go
index a974c3ed05..382986bf1d 100644
--- a/modules/private/manager.go
+++ b/modules/private/manager.go
@@ -29,6 +29,13 @@ func Restart(ctx context.Context) ResponseExtra {
return requestJSONClientMsg(req, "Restarting")
}
+// ReloadTemplates calls the internal reload-templates function
+func ReloadTemplates(ctx context.Context) ResponseExtra {
+ reqURL := setting.LocalURL + "api/internal/manager/reload-templates"
+ req := newInternalRequest(ctx, reqURL, "POST")
+ return requestJSONClientMsg(req, "Reloaded")
+}
+
// FlushOptions represents the options for the flush call
type FlushOptions struct {
Timeout time.Duration