mirror of
https://github.com/versia-pub/server.git
synced 2025-12-07 08:48:19 +01:00
Add more OAuth scopes to current routes
This commit is contained in:
parent
9ec3d96f9d
commit
f02344fa0d
|
|
@ -16,6 +16,7 @@ export const meta = applyConfig({
|
||||||
route: "/accounts/:id/block",
|
route: "/accounts/:id/block",
|
||||||
auth: {
|
auth: {
|
||||||
required: true,
|
required: true,
|
||||||
|
oauthPermissions: ["write:blocks"],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ export const meta = applyConfig({
|
||||||
route: "/accounts/:id/follow",
|
route: "/accounts/:id/follow",
|
||||||
auth: {
|
auth: {
|
||||||
required: true,
|
required: true,
|
||||||
|
oauthPermissions: ["write:follows"],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ export const meta = applyConfig({
|
||||||
route: "/accounts/:id/followers",
|
route: "/accounts/:id/followers",
|
||||||
auth: {
|
auth: {
|
||||||
required: false,
|
required: false,
|
||||||
|
oauthPermissions: [],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ export const meta = applyConfig({
|
||||||
route: "/accounts/:id/following",
|
route: "/accounts/:id/following",
|
||||||
auth: {
|
auth: {
|
||||||
required: false,
|
required: false,
|
||||||
|
oauthPermissions: [],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ export const meta = applyConfig({
|
||||||
route: "/accounts/:id",
|
route: "/accounts/:id",
|
||||||
auth: {
|
auth: {
|
||||||
required: true,
|
required: true,
|
||||||
|
oauthPermissions: [],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ export const meta = applyConfig({
|
||||||
route: "/accounts/:id/mute",
|
route: "/accounts/:id/mute",
|
||||||
auth: {
|
auth: {
|
||||||
required: true,
|
required: true,
|
||||||
|
oauthPermissions: ["write:mutes"],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ export const meta = applyConfig({
|
||||||
route: "/accounts/:id/note",
|
route: "/accounts/:id/note",
|
||||||
auth: {
|
auth: {
|
||||||
required: true,
|
required: true,
|
||||||
|
oauthPermissions: ["write:accounts"],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ export const meta = applyConfig({
|
||||||
route: "/accounts/:id/pin",
|
route: "/accounts/:id/pin",
|
||||||
auth: {
|
auth: {
|
||||||
required: true,
|
required: true,
|
||||||
|
oauthPermissions: ["write:accounts"],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ export const meta = applyConfig({
|
||||||
route: "/accounts/:id/remove_from_followers",
|
route: "/accounts/:id/remove_from_followers",
|
||||||
auth: {
|
auth: {
|
||||||
required: true,
|
required: true,
|
||||||
|
oauthPermissions: ["write:follows"],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ export const meta = applyConfig({
|
||||||
route: "/accounts/:id/statuses",
|
route: "/accounts/:id/statuses",
|
||||||
auth: {
|
auth: {
|
||||||
required: false,
|
required: false,
|
||||||
|
oauthPermissions: ["read:statuses"],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ export const meta = applyConfig({
|
||||||
route: "/accounts/:id/unblock",
|
route: "/accounts/:id/unblock",
|
||||||
auth: {
|
auth: {
|
||||||
required: true,
|
required: true,
|
||||||
|
oauthPermissions: ["write:blocks"],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ export const meta = applyConfig({
|
||||||
route: "/accounts/:id/unfollow",
|
route: "/accounts/:id/unfollow",
|
||||||
auth: {
|
auth: {
|
||||||
required: true,
|
required: true,
|
||||||
|
oauthPermissions: ["write:follows"],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ export const meta = applyConfig({
|
||||||
route: "/accounts/:id/unmute",
|
route: "/accounts/:id/unmute",
|
||||||
auth: {
|
auth: {
|
||||||
required: true,
|
required: true,
|
||||||
|
oauthPermissions: ["write:mutes"],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ export const meta = applyConfig({
|
||||||
route: "/accounts/:id/unpin",
|
route: "/accounts/:id/unpin",
|
||||||
auth: {
|
auth: {
|
||||||
required: true,
|
required: true,
|
||||||
|
oauthPermissions: ["write:accounts"],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ export const meta = applyConfig({
|
||||||
},
|
},
|
||||||
auth: {
|
auth: {
|
||||||
required: true,
|
required: true,
|
||||||
|
oauthPermissions: ["read:follows"],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ export const meta = applyConfig({
|
||||||
},
|
},
|
||||||
auth: {
|
auth: {
|
||||||
required: false,
|
required: false,
|
||||||
|
oauthPermissions: ["write:accounts"],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ export const meta = applyConfig({
|
||||||
},
|
},
|
||||||
auth: {
|
auth: {
|
||||||
required: true,
|
required: true,
|
||||||
|
oauthPermissions: ["read:follows"],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ export const meta = applyConfig({
|
||||||
},
|
},
|
||||||
auth: {
|
auth: {
|
||||||
required: true,
|
required: true,
|
||||||
|
oauthPermissions: ["read:accounts"],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ export const meta = applyConfig({
|
||||||
},
|
},
|
||||||
auth: {
|
auth: {
|
||||||
required: true,
|
required: true,
|
||||||
|
oauthPermissions: ["write:accounts"],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ export const meta = applyConfig({
|
||||||
},
|
},
|
||||||
auth: {
|
auth: {
|
||||||
required: true,
|
required: true,
|
||||||
|
oauthPermissions: ["read:accounts"],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue