summaryrefslogtreecommitdiffstats
path: root/bridge/bridge.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-02-18 23:10:22 +0100
committerWim <wim@42.be>2017-02-18 23:13:46 +0100
commit73f01ad8d813505c6309fe568d0abc597cff8790 (patch)
tree426bc1779c1abcf2afe56e2dc2a2f43d70aae278 /bridge/bridge.go
parent930b639cc9cd2d2873302f30303378c0e53816a8 (diff)
downloadmatterbridge-msglm-73f01ad8d813505c6309fe568d0abc597cff8790.tar.gz
matterbridge-msglm-73f01ad8d813505c6309fe568d0abc597cff8790.tar.bz2
matterbridge-msglm-73f01ad8d813505c6309fe568d0abc597cff8790.zip
Add REST API support
Diffstat (limited to 'bridge/bridge.go')
-rw-r--r--bridge/bridge.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/bridge/bridge.go b/bridge/bridge.go
index db26c422..012b0efd 100644
--- a/bridge/bridge.go
+++ b/bridge/bridge.go
@@ -1,6 +1,7 @@
package bridge
import (
+ "github.com/42wim/matterbridge/bridge/api"
"github.com/42wim/matterbridge/bridge/config"
"github.com/42wim/matterbridge/bridge/discord"
"github.com/42wim/matterbridge/bridge/gitter"
@@ -70,6 +71,9 @@ func New(cfg *config.Config, bridge *config.Bridge, c chan config.Message) *Brid
case "rocketchat":
b.Config = cfg.Rocketchat[name]
b.Bridger = brocketchat.New(cfg.Rocketchat[name], bridge.Account, c)
+ case "api":
+ b.Config = cfg.Api[name]
+ b.Bridger = api.New(cfg.Api[name], bridge.Account, c)
}
return b
}