Implement some post endpoints for APIv4 (#5353)

* Implement POST /posts endpoint for APIv4

* Implement GET /channels/{channel_id}/posts endpoint for APIv4

* Implement GET /posts/{post_id} endpoint for APIv4

* Implement GET /posts/{post_id}/thread endpoint for APIv4

* Skip team get if it's a DM channel in handlePostEvents
This commit is contained in:
Joram Wilander
2017-02-13 10:52:50 -05:00
committed by Corey Hulen
parent 260f1111e8
commit e4effd0c15
10 changed files with 491 additions and 12 deletions

View File

@@ -140,6 +140,7 @@ func InitApi(full bool) {
InitUser()
InitTeam()
InitChannel()
InitPost()
app.Srv.Router.Handle("/api/v4/{anything:.*}", http.HandlerFunc(Handle404))