Add mock of the messages page

This commit is contained in:
Eli Ribble 2026-02-17 07:05:31 +00:00
parent 7d33354acb
commit 8150af5889
No known key found for this signature in database
3 changed files with 379 additions and 0 deletions

14
sync/messages.go Normal file
View 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
}

View file

@ -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))