@@ -27,6 +27,7 @@ import Servant.Docs (HasDocs, docsFor, notes, DocNote(DocNote))
27import Server.API.Channels
27import Server.API.Channels
28import Control.Lens
28import Control.Lens
29import Server.Query.ComplexQuery
29import Server.Query.ComplexQuery
30+import Server.API.Completions
31-- MARK: Documentation
32-- MARK: Documentation
@@ -48,7 +49,8 @@ type API =
48 "users" :> "all" :> Post '[JSON] [User] :<|>
49 "users" :> "all" :> Post '[JSON] [User] :<|>
49 "posts" :> PostApi :<|>
50 "posts" :> PostApi :<|>
50 "channels" :> ChannelsApi
51 "channels" :> ChannelsApi
53serverProxy :: Proxy API
55serverProxy :: Proxy API
54serverProxy = Proxy
56serverProxy = Proxy
@@ -62,4 +64,5 @@ mkServerAPI l =
62 runQnotFound getAllUsers :<|>
64 runQnotFound getAllUsers :<|>
63 postApi uId :<|>
65 postApi uId :<|>
64 channelsApi uId
66 channelsApi uId