summaryrefslogtreecommitdiff
path: root/srv/api/api.go
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2021-08-18 17:13:25 -0600
committerBrian Picciano <mediocregopher@gmail.com>2021-08-18 17:13:25 -0600
commitbec64827d19d64aae86ca3d2b26de800b427a540 (patch)
tree43aaf5b4b3681cff8e624819f311d8d36e9bd27f /srv/api/api.go
parenteaccf41563a5696996c0c75ceff1f270e88fc207 (diff)
implement basic chat history endpoint
Diffstat (limited to 'srv/api/api.go')
-rw-r--r--srv/api/api.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/srv/api/api.go b/srv/api/api.go
index ae0970b..15627f8 100644
--- a/srv/api/api.go
+++ b/srv/api/api.go
@@ -12,6 +12,7 @@ import (
"os"
"github.com/mediocregopher/blog.mediocregopher.com/srv/cfg"
+ "github.com/mediocregopher/blog.mediocregopher.com/srv/chat"
"github.com/mediocregopher/blog.mediocregopher.com/srv/mailinglist"
"github.com/mediocregopher/blog.mediocregopher.com/srv/pow"
"github.com/mediocregopher/mediocre-go-lib/v2/mctx"
@@ -24,6 +25,7 @@ type Params struct {
Logger *mlog.Logger
PowManager pow.Manager
MailingList mailinglist.MailingList
+ GlobalRoom chat.Room
// ListenProto and ListenAddr are passed into net.Listen to create the
// API's listener. Both "tcp" and "unix" protocols are explicitly