Return a compliance URI on creation
This commit is contained in:
parent
5011f4c137
commit
8baa056fab
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ func (res *complianceR) Create(ctx context.Context, r *http.Request, n publicrep
|
|||
if err != nil {
|
||||
return nil, nhttp.NewError("create compliance report: %w", err)
|
||||
}
|
||||
uri, err := res.router.IDStrToURI("publicreport.ByIDGet", report.PublicID)
|
||||
uri, err := res.router.IDStrToURI("publicreport.compliance.ByIDGet", report.PublicID)
|
||||
if err != nil {
|
||||
return nil, nhttp.NewError("generate uri: %w", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue