Add service request list page
This commit is contained in:
parent
c439c7c8a8
commit
b6264da972
3 changed files with 400 additions and 0 deletions
|
|
@ -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
14
sync/service-request.go
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue