From 16581ae431ffeae97db18eb8672232505a7ce3c0 Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Wed, 10 May 2017 12:44:18 +0200 Subject: implement open graph metadata for apiV4 (#6343) --- api4/api.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'api4/api.go') diff --git a/api4/api.go b/api4/api.go index e75d1bf45..4ed636593 100644 --- a/api4/api.go +++ b/api4/api.go @@ -69,6 +69,8 @@ type Routes struct { OAuthApps *mux.Router // 'api/v4/oauth/apps' OAuthApp *mux.Router // 'api/v4/oauth/apps/{app_id:[A-Za-z0-9]+}' + OpenGraph *mux.Router // 'api/v4/opengraph' + SAML *mux.Router // 'api/v4/saml' Compliance *mux.Router // 'api/v4/compliance' Cluster *mux.Router // 'api/v4/cluster' @@ -174,6 +176,8 @@ func InitApi(full bool) { BaseRoutes.Webrtc = BaseRoutes.ApiRoot.PathPrefix("/webrtc").Subrouter() + BaseRoutes.OpenGraph = BaseRoutes.ApiRoot.PathPrefix("/opengraph").Subrouter() + InitUser() InitTeam() InitChannel() @@ -194,6 +198,7 @@ func InitApi(full bool) { InitOAuth() InitReaction() InitWebrtc() + InitOpenGraph() app.Srv.Router.Handle("/api/v4/{anything:.*}", http.HandlerFunc(Handle404)) -- cgit v1.2.3-1-g7c22