diff options
author | Carlos Tadeu Panato Junior <ctadeu@gmail.com> | 2017-05-10 12:44:18 +0200 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2017-05-10 11:44:18 +0100 |
commit | 16581ae431ffeae97db18eb8672232505a7ce3c0 (patch) | |
tree | b87317febf6f2ee4588fa3c8b48ed7a1cf81c048 /api4/api.go | |
parent | b9f4ced52b65d147b57d7028f6df4935a6aea8f9 (diff) | |
download | chat-16581ae431ffeae97db18eb8672232505a7ce3c0.tar.gz chat-16581ae431ffeae97db18eb8672232505a7ce3c0.tar.bz2 chat-16581ae431ffeae97db18eb8672232505a7ce3c0.zip |
implement open graph metadata for apiV4 (#6343)
Diffstat (limited to 'api4/api.go')
-rw-r--r-- | api4/api.go | 5 |
1 files changed, 5 insertions, 0 deletions
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)) |