Versions
- Open: VersionChanges from v21 to v22+2-2type ReqBody = {
isBase64: boolean;returnBase64: boolean;content: string;};⦚ 17 unchanged lines ⦚type ReqBody = {isBase64?: boolean;returnBase64?: boolean;content: string;};⦚ 17 unchanged lines ⦚ - Open: VersionChanges from v20 to v21+1-1type ReqBody = {isBase64: boolean;
returnBase6: boolean;content: string;};⦚ 17 unchanged lines ⦚type ReqBody = {isBase64: boolean;returnBase64: boolean;content: string;};⦚ 17 unchanged lines ⦚ - Open: VersionChanges from v19 to v20+1-1⦚ 11 unchanged lines ⦚}try {
const { isBase64, returnBase64, content } = (await request.json()) as ;return Response.json(content);⦚ 6 unchanged lines ⦚⦚ 11 unchanged lines ⦚}try {const { isBase64, returnBase64, content } = (await request.json()) as ReqBody;return Response.json(content);⦚ 6 unchanged lines ⦚ - Open: VersionChanges from v18 to v19+15-15⦚ 4 unchanged lines ⦚};
// export default async function handler(request: Request) {// if (request.method !== "POST") {// return Response.json({ message: "This val responds to POST requests." }, {// status: 400,// });// }// try {// const { isBase64, returnBase64, content } = (await request.json()) as ;// return Response.json(content);// } catch (e) {// return Response.json({ message: "The body of this request was not JSON-encoded." }, {// status: 400,// });// }// }⦚ 4 unchanged lines ⦚};export default async function handler(request: Request) {if (request.method !== "POST") {return Response.json({ message: "This val responds to POST requests." }, {status: 400,});}try {const { isBase64, returnBase64, content } = (await request.json()) as ;return Response.json(content);} catch (e) {return Response.json({ message: "The body of this request was not JSON-encoded." }, {status: 400,});}} - Open: VersionChanges from v17 to v18+5-3
type ReqBody ={isBase64: boolean, returnBase6: boolean, content: string// }// export default async function handler(request: Request) {⦚ 15 unchanged lines ⦚type ReqBody = {isBase64: boolean;returnBase6: boolean;content: string;};// export default async function handler(request: Request) {⦚ 15 unchanged lines ⦚ - Open: VersionChanges from v16 to v17+16-16type ReqBody ={isBase64: boolean, returnBase6: boolean, content: string
}export default async function handler(request: Request) {if (request.method !== "POST") {return Response.json({ message: "This val responds to POST requests." }, {status: 400,});}try {const { isBase64, returnBase64, content } = (await request.json()) as ;return Response.json(content);} catch (e) {return Response.json({ message: "The body of this request was not JSON-encoded." }, {status: 400,});}}type ReqBody ={isBase64: boolean, returnBase6: boolean, content: string// }// export default async function handler(request: Request) {// if (request.method !== "POST") {// return Response.json({ message: "This val responds to POST requests." }, {// status: 400,// });// }// try {// const { isBase64, returnBase64, content } = (await request.json()) as ;// return Response.json(content);// } catch (e) {// return Response.json({ message: "The body of this request was not JSON-encoded." }, {// status: 400,// });// }// } - Open: VersionChanges from v15 to v16+1-1⦚ 10 unchanged lines ⦚try {const { isBase64, returnBase64, content } = (await request.json()) as ;
const md = isBase64return Response.json(content);} catch (e) {⦚ 5 unchanged lines ⦚⦚ 10 unchanged lines ⦚try {const { isBase64, returnBase64, content } = (await request.json()) as ;return Response.json(content);} catch (e) {⦚ 5 unchanged lines ⦚ - Open: VersionChanges from v14 to v15+1-1type ReqBody ={
isBase64: boolean; returnBase6: boolean; content: string}⦚ 16 unchanged lines ⦚type ReqBody ={isBase64: boolean, returnBase6: boolean, content: string}⦚ 16 unchanged lines ⦚ - Open: Version+20-0type ReqBody ={isBase64: boolean; returnBase6: boolean; content: string}export default async function handler(request: Request) {if (request.method !== "POST") {return Response.json({ message: "This val responds to POST requests." }, {status: 400,});}try {const { isBase64, returnBase64, content } = (await request.json()) as ;const md = isBase64return Response.json(content);} catch (e) {return Response.json({ message: "The body of this request was not JSON-encoded." }, {status: 400,});}}
nbbaier-mdconvert.web.val.run
Updated: May 26, 2024