Add mock of the messages page
This commit is contained in:
parent
7d33354acb
commit
8150af5889
3 changed files with 379 additions and 0 deletions
14
sync/messages.go
Normal file
14
sync/messages.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package sync
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/Gleipnir-Technology/nidus-sync/db/models"
|
||||
)
|
||||
|
||||
type contentMessageList struct{}
|
||||
|
||||
func getMessageList(ctx context.Context, user *models.User) (string, interface{}, *errorWithStatus) {
|
||||
content := contentMessageList{}
|
||||
return "sync/message-list.html", content, nil
|
||||
}
|
||||
|
|
@ -49,6 +49,7 @@ func Router() chi.Router {
|
|||
r.Route("/api", api.AddRoutes)
|
||||
r.Method("GET", "/cell/{cell}", auth.NewEnsureAuth(getCellDetails))
|
||||
r.Method("GET", "/layout-test", auth.NewEnsureAuth(getLayoutTest))
|
||||
r.Method("GET", "/message", authenticatedHandler(getMessageList))
|
||||
r.Method("GET", "/notification", auth.NewEnsureAuth(getNotificationList))
|
||||
r.Method("GET", "/pool", auth.NewEnsureAuth(getPoolList))
|
||||
r.Method("GET", "/pool/upload", auth.NewEnsureAuth(getPoolUpload))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue