fix(api): 🐛 Add tags to all API routes that were missing one

This commit is contained in:
Jesse Wierzbinski 2025-03-28 22:12:07 +01:00
parent d75254fc71
commit cd4cfa6a70
No known key found for this signature in database
17 changed files with 22 additions and 0 deletions

View file

@ -69,6 +69,7 @@ export default (plugin: PluginType): void =>
{
method: "post",
path: "/oauth/authorize",
tags: ["OpenID"],
middleware: [
auth({
auth: false,

View file

@ -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",

View file

@ -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,

View file

@ -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: {

View file

@ -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,
},

View file

@ -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: {

View file

@ -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,

View file

@ -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,