From bec64827d19d64aae86ca3d2b26de800b427a540 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Wed, 18 Aug 2021 17:13:25 -0600 Subject: implement basic chat history endpoint --- srv/api/api.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'srv/api/api.go') 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 -- cgit v1.2.3