feat(backend): add member GET endpoints, POST /users/@me/members endpoint
This commit is contained in:
parent
16f230b97d
commit
e7ec0e6661
10 changed files with 152 additions and 55 deletions
|
@ -10,7 +10,7 @@ public static class AuthUtils
|
|||
private static readonly string[] ForbiddenSchemes = ["javascript", "file", "data", "mailto", "tel"];
|
||||
|
||||
public static readonly string[] UserScopes =
|
||||
["user.read_privileged", "user.update"];
|
||||
["user.read_hidden", "user.read_privileged", "user.update"];
|
||||
|
||||
public static readonly string[] MemberScopes = ["member.read", "member.update", "member.create"];
|
||||
|
||||
|
@ -73,7 +73,7 @@ public static class AuthUtils
|
|||
bytes = Convert.FromBase64String(b64);
|
||||
return true;
|
||||
}
|
||||
catch (Exception e)
|
||||
catch
|
||||
{
|
||||
bytes = [];
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue