@@ -11,17 +11,17 @@ export function collection(paginatedResult: PaginatedResult<User>, embeddedUsers
11
11
const totalPages = Math . ceil ( total / pageSize ) ;
12
12
13
13
const links : Record < string , HalLink | HalLink [ ] > = {
14
- 'self' : getUserPageHref ( currentPage ) ,
15
- 'item' : users . map ( user => ( {
16
- href : user . href ,
17
- title : user . nickname ,
18
- } ) ) ,
19
- 'create-form' : { href : '/user/new' , title : 'Create New User' , type : 'text/html' } ,
20
- 'find-by-href' : {
21
- title : 'Find a user through a identity/href (exact match)' ,
22
- href : '/user/byhref/{href}' ,
23
- templated : true ,
24
- }
14
+ 'self' : getUserPageHref ( currentPage ) ,
15
+ 'item' : users . map ( user => ( {
16
+ href : user . href ,
17
+ title : user . nickname ,
18
+ } ) ) ,
19
+ 'create-form' : { href : '/user/new' , title : 'Create New User' , type : 'text/html' } ,
20
+ 'find-by-href' : {
21
+ title : 'Find a user through a identity/href (exact match)' ,
22
+ href : '/user/byhref/{href}' ,
23
+ templated : true ,
24
+ }
25
25
} ;
26
26
27
27
if ( hasNextPage ) {
@@ -87,7 +87,7 @@ export function item(user: User, privileges: PrivilegeMap, hasControl: boolean,
87
87
href : 'https://curveballjs.org/schemas/a12nserver/user.json' ,
88
88
type : 'application/schema+json' ,
89
89
}
90
- }
90
+ } ;
91
91
92
92
if ( hasControl || currentUserPrivileges . has ( 'a12n:one-time-token:generate' ) ) {
93
93
links [ 'one-time-token' ] = {
0 commit comments