Add service request list page

This commit is contained in:
Eli Ribble 2026-02-17 19:06:51 +00:00
parent c439c7c8a8
commit b6264da972
No known key found for this signature in database
3 changed files with 400 additions and 0 deletions

View file

@ -55,6 +55,7 @@ func Router() chi.Router {
r.Method("GET", "/pool/upload/{id}", auth.NewEnsureAuth(getPoolUploadByID))
r.Method("POST", "/pool/upload", auth.NewEnsureAuth(postPoolUpload))
r.Method("GET", "/radar", auth.NewEnsureAuth(getRadar))
r.Method("GET", "/service-request", authenticatedHandler(getServiceRequestList))
r.Method("GET", "/setting", auth.NewEnsureAuth(getSetting))
r.Method("GET", "/setting/organization", auth.NewEnsureAuth(getSettingOrganization))
r.Method("GET", "/setting/integration", auth.NewEnsureAuth(getSettingIntegration))

14
sync/service-request.go Normal file
View file

@ -0,0 +1,14 @@
package sync
import (
"context"
"github.com/Gleipnir-Technology/nidus-sync/db/models"
)
type contentServiceRequestPlaceholder struct{}
func getServiceRequestList(ctx context.Context, user *models.User) (string, interface{}, *errorWithStatus) {
content := contentServiceRequestPlaceholder{}
return "sync/service-request-list.html", content, nil
}