summaryrefslogtreecommitdiffstats
path: root/api4/openGraph.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/openGraph.go')
-rw-r--r--api4/openGraph.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api4/openGraph.go b/api4/openGraph.go
index 690631ab0..e03ecd219 100644
--- a/api4/openGraph.go
+++ b/api4/openGraph.go
@@ -16,10 +16,10 @@ const OPEN_GRAPH_METADATA_CACHE_SIZE = 10000
var openGraphDataCache = utils.NewLru(OPEN_GRAPH_METADATA_CACHE_SIZE)
-func InitOpenGraph() {
+func (api *API) InitOpenGraph() {
l4g.Debug(utils.T("api.opengraph.init.debug"))
- BaseRoutes.OpenGraph.Handle("", ApiSessionRequired(getOpenGraphMetadata)).Methods("POST")
+ api.BaseRoutes.OpenGraph.Handle("", api.ApiSessionRequired(getOpenGraphMetadata)).Methods("POST")
}
func getOpenGraphMetadata(c *Context, w http.ResponseWriter, r *http.Request) {