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

@ -19,6 +19,7 @@ const route = createRoute({
summary: "OAuth Code flow",
description:
"Redirects to the application, or back to login if the code is invalid",
tags: ["OpenID"],
responses: {
302: {
description:

View file

@ -39,6 +39,7 @@ const routeDelete = createRoute({
method: "delete",
path: "/api/v1/accounts/{id}/roles/{role_id}",
summary: "Remove role from user",
tags: ["Accounts"],
middleware: [
auth({
auth: true,

View file

@ -15,6 +15,7 @@ const route = createRoute({
summary: "Lookup account ID from Webfinger address",
description:
"Quickly lookup a username to see if it is available, skipping WebFinger resolution.",
tags: ["Accounts"],
middleware: [
auth({
auth: false,

View file

@ -40,6 +40,7 @@ const route = createRoute({
path: "/api/v1/emojis",
summary: "Upload emoji",
description: "Upload a new emoji to the server.",
tags: ["Emojis"],
middleware: [
auth({
auth: true,

View file

@ -13,6 +13,7 @@ const route = createRoute({
method: "delete",
path: "/api/v1/notifications/destroy_multiple",
summary: "Dismiss multiple notifications",
tags: ["Notifications"],
middleware: [
auth({
auth: true,

View file

@ -19,6 +19,7 @@ const route = createRoute({
externalDocs: {
url: "https://docs.joinmastodon.org/methods/notifications/#get",
},
tags: ["Notifications"],
middleware: [
auth({
auth: true,

View file

@ -9,6 +9,7 @@ const routeGet = createRoute({
method: "get",
path: "/api/v1/roles/{id}",
summary: "Get role data",
tags: ["Roles"],
middleware: [
auth({
auth: true,
@ -37,6 +38,7 @@ const routePatch = createRoute({
method: "patch",
path: "/api/v1/roles/{id}",
summary: "Update role data",
tags: ["Roles"],
middleware: [
auth({
auth: true,
@ -68,6 +70,7 @@ const routeDelete = createRoute({
method: "delete",
path: "/api/v1/roles/{id}",
summary: "Delete role",
tags: ["Roles"],
middleware: [
auth({
auth: true,

View file

@ -9,6 +9,7 @@ const routeGet = createRoute({
method: "get",
path: "/api/v1/roles",
summary: "Get all roles",
tags: ["Roles"],
middleware: [
auth({
auth: true,
@ -30,6 +31,7 @@ const routePost = createRoute({
method: "post",
path: "/api/v1/roles",
summary: "Create a new role",
tags: ["Roles"],
middleware: [
auth({
auth: true,

View file

@ -6,6 +6,7 @@ const route = createRoute({
method: "get",
path: "/.well-known/openid-configuration",
summary: "OpenID Configuration",
tags: ["OpenID"],
responses: {
200: {
description: "OpenID Configuration",