list
@GetMapping(headers = "token")
Method to get a list of links
Return
the links list, if authorized, else failed message as T
Parameters
userId
: the identifier of the user
token
: the token of the user
ownedOnly
: whether to get only the links where the user is the owner
<T>
the RefyLink type