Add new pool review page

This commit is contained in:
Eli Ribble 2026-03-06 18:56:05 +00:00
parent 527e82031e
commit 03380eba45
No known key found for this signature in database
7 changed files with 315 additions and 334 deletions

View file

@ -9,8 +9,12 @@ import (
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
)
type contentReviewPool struct{}
type contentReviewRoot struct{}
func getReviewRoot(ctx context.Context, r *http.Request, org *models.Organization, user *models.User) (*html.Response[contentReviewRoot], *nhttp.ErrorWithStatus) {
return html.NewResponse("sync/review-root.html", contentReviewRoot{}), nil
func getReviewPool(ctx context.Context, r *http.Request, org *models.Organization, user *models.User) (*html.Response[contentReviewRoot], *nhttp.ErrorWithStatus) {
return html.NewResponse("sync/review/pool.html", contentReviewRoot{}), nil
}
func getReviewRoot(ctx context.Context, r *http.Request, org *models.Organization, user *models.User) (*html.Response[contentReviewRoot], *nhttp.ErrorWithStatus) {
return html.NewResponse("sync/review/root.html", contentReviewRoot{}), nil
}

View file

@ -76,6 +76,7 @@ func Router() chi.Router {
r.Method("GET", "/pool/{id}", authenticatedHandler(getPoolByID))
r.Method("GET", "/radar", authenticatedHandler(getRadar))
r.Method("GET", "/review", authenticatedHandler(getReviewRoot))
r.Method("GET", "/review/pool", authenticatedHandler(getReviewPool))
r.Method("GET", "/service-request", authenticatedHandler(getServiceRequestList))
r.Method("GET", "/service-request/{id}", authenticatedHandler(getServiceRequestDetail))
r.Method("GET", "/signout", auth.NewEnsureAuth(getSignout))