mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix(api): 🐛 Add tags to all API routes that were missing one
This commit is contained in:
parent
d75254fc71
commit
cd4cfa6a70
17 changed files with 22 additions and 0 deletions
|
|
@ -69,6 +69,7 @@ export default (plugin: PluginType): void =>
|
|||
{
|
||||
method: "post",
|
||||
path: "/oauth/authorize",
|
||||
tags: ["OpenID"],
|
||||
middleware: [
|
||||
auth({
|
||||
auth: false,
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ export default (plugin: PluginType): void => {
|
|||
method: "get",
|
||||
path: "/.well-known/jwks",
|
||||
summary: "JWK Set",
|
||||
tags: ["OpenID"],
|
||||
responses: {
|
||||
200: {
|
||||
description: "JWK Set",
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ export default (plugin: PluginType): void => {
|
|||
method: "get",
|
||||
path: "/oauth/sso/{issuer}/callback",
|
||||
summary: "SSO callback",
|
||||
tags: ["OpenID"],
|
||||
description:
|
||||
"After the user has authenticated to an external OpenID provider, they are redirected here to complete the OAuth flow and get a code",
|
||||
middleware: [plugin.middleware] as const,
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ export default (plugin: PluginType): void => {
|
|||
method: "post",
|
||||
path: "/oauth/revoke",
|
||||
summary: "Revoke token",
|
||||
tags: ["OpenID"],
|
||||
middleware: [jsonOrForm(), plugin.middleware],
|
||||
request: {
|
||||
body: {
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ export default (plugin: PluginType): void => {
|
|||
method: "get",
|
||||
path: "/oauth/sso",
|
||||
summary: "Initiate SSO login flow",
|
||||
tags: ["OpenID"],
|
||||
request: {
|
||||
query: schemas.query,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ export default (plugin: PluginType): void => {
|
|||
method: "post",
|
||||
path: "/oauth/token",
|
||||
summary: "Get token",
|
||||
tags: ["OpenID"],
|
||||
middleware: [jsonOrForm(), plugin.middleware],
|
||||
request: {
|
||||
body: {
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ export default (plugin: PluginType): void => {
|
|||
method: "get",
|
||||
path: "/api/v1/sso/{id}",
|
||||
summary: "Get linked account",
|
||||
tags: ["SSO"],
|
||||
middleware: [
|
||||
auth({
|
||||
auth: true,
|
||||
|
|
@ -93,6 +94,7 @@ export default (plugin: PluginType): void => {
|
|||
method: "delete",
|
||||
path: "/api/v1/sso/{id}",
|
||||
summary: "Unlink account",
|
||||
tags: ["SSO"],
|
||||
middleware: [
|
||||
auth({
|
||||
auth: true,
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ export default (plugin: PluginType): void => {
|
|||
method: "get",
|
||||
path: "/api/v1/sso",
|
||||
summary: "Get linked accounts",
|
||||
tags: ["SSO"],
|
||||
middleware: [
|
||||
auth({
|
||||
auth: true,
|
||||
|
|
@ -65,6 +66,7 @@ export default (plugin: PluginType): void => {
|
|||
method: "post",
|
||||
path: "/api/v1/sso",
|
||||
summary: "Link account",
|
||||
tags: ["SSO"],
|
||||
middleware: [
|
||||
auth({
|
||||
auth: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue