Move all sync pages to authenticatedHandler
Still need to fix many templates
This commit is contained in:
parent
85d2d0b95b
commit
dac52a879a
23 changed files with 409 additions and 476 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue