Files

37 lines
711 B
JavaScript
Executable File

export default {
"/uploads/single/{folder}": {
post: {
tags: ["Uploads"],
summary: "Endpoint to handle Single File",
parameters: [
{
in: "path",
name: "folder",
},
],
requestBody: {
required: true,
content: {
"multipart/form-data": {
schema: {
type: "object",
properties: {
file: {
type: "string",
format: "binary",
},
},
},
},
},
},
responses: {
200: {
description: "OK",
content: {},
},
},
},
},
};