Skip to content

Commit d55483e

Browse files
committed
POST is actually used in our code, not GET
1 parent 2f218a2 commit d55483e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/packages/next/pages/api/v2/compute/get-images-google.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
GetComputeServerGoogleImagesOutputSchema,
1414
} from "lib/api/schema/compute/get-images-google";
1515

16-
1716
async function handle(req, res) {
1817
try {
1918
res.json(await get(req));
@@ -42,9 +41,9 @@ async function get(req) {
4241

4342
export default apiRoute({
4443
getImagesGoogle: apiRouteOperation({
45-
method: "GET",
44+
method: "POST",
4645
openApiOperation: {
47-
tags: ["Compute"]
46+
tags: ["Compute"],
4847
},
4948
})
5049
.input({

src/packages/next/pages/api/v2/compute/get-images.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
GetComputeServerImagesOutputSchema,
1414
} from "lib/api/schema/compute/get-images";
1515

16-
1716
async function handle(req, res) {
1817
try {
1918
res.json(await get(req));
@@ -42,9 +41,9 @@ async function get(req) {
4241

4342
export default apiRoute({
4443
getImages: apiRouteOperation({
45-
method: "GET",
44+
method: "POST",
4645
openApiOperation: {
47-
tags: ["Compute"]
46+
tags: ["Compute"],
4847
},
4948
})
5049
.input({

0 commit comments

Comments
 (0)