Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 authored Nov 3, 2023
1 parent 634d043 commit 599e522
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions api/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import qs from 'query-string';

import cors from '../src/cors';
// import cors from '../src/cors';
import { SsmlOptions } from '../src/genSSML';
import { postMicrosoftSpeech } from '../src/index';

Expand All @@ -11,9 +11,6 @@ export const config = {
export default async (req: Request) => {
const { text, ...options }: SsmlOptions & { text: string } = qs.parseUrl(req.url).query as any;

console.log(text)
console.log(options)

const res = await fetch(...postMicrosoftSpeech(text, options));
return cors(req, res);
return res
};

0 comments on commit 599e522

Please sign in to comment.