Skip to content

Commit

Permalink
Fix test, remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-balitskyi committed Dec 17, 2024
1 parent 5c4215c commit bd68dfb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pages/api/internal/api_keys/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const route_spec = {
"pat_with_workspace",
"console_session_with_workspace",
"api_key",
], // TODO: session_or_access_token_and_workspace
],
methods: ["POST"],
jsonBody: z.object({
name: z.string(),
Expand Down
4 changes: 2 additions & 2 deletions src/pages/api/workspaces/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import { type Workspace, workspace } from "lib/zod/index.ts"
export default withRouteSpec({
methods: ["GET", "POST"],
auth: [
"pat_with_workspace",
"pat_without_workspace",
"api_key",
"client_session",
"console_session_with_workspace",
"console_session_without_workspace",
"pat_with_workspace",
"pat_without_workspace",
],
jsonResponse: z.object({
workspaces: z.array(workspace),
Expand Down

0 comments on commit bd68dfb

Please sign in to comment.