Move all sync pages to authenticatedHandler

Still need to fix many templates
This commit is contained in:
Eli Ribble 2026-02-24 15:34:53 +00:00
parent 85d2d0b95b
commit dac52a879a
No known key found for this signature in database
23 changed files with 409 additions and 476 deletions

View file

@ -2,13 +2,14 @@ package sync
import (
"context"
"net/http"
"github.com/Gleipnir-Technology/nidus-sync/db/models"
)
type contentAdminDash struct{}
func getAdminDash(ctx context.Context, user *models.User) (string, interface{}, *errorWithStatus) {
func getAdminDash(ctx context.Context, r *http.Request, org *models.Organization, user *models.User) (*response[contentAdminDash], *errorWithStatus) {
content := contentAdminDash{}
return "sync/admin-dash.html", content, nil
return newResponse("sync/admin-dash.html", content), nil
}