Add new pool review page
This commit is contained in:
parent
527e82031e
commit
03380eba45
7 changed files with 315 additions and 334 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue