Skip to content

Commit

Permalink
changes for default export
Browse files Browse the repository at this point in the history
  • Loading branch information
vjnvisakh-jtc committed Mar 18, 2024
1 parent 314b630 commit 2813280
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions netlify/functions/quote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Context } from '@netlify/functions';
import { getQuoteFromNinja } from './ninja';
import { getQuoteFromGemini } from './gemini';

export const quote = async (req: Request, context: Context) => {
const quote = async (req: Request, context: Context) => {
let data;

if (Math.random() < 0.5) {
Expand All @@ -12,4 +12,6 @@ export const quote = async (req: Request, context: Context) => {
}

return new Response(data);
}
}

export default quote;

0 comments on commit 2813280

Please sign in to comment.