Skip to content

Commit

Permalink
fix api
Browse files Browse the repository at this point in the history
  • Loading branch information
gtktsc committed Sep 18, 2023
1 parent af4c700 commit fd8806a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function handler(
const parsedSettings =
(settings && JSON.parse(settings as string)) || undefined;

res.status(200).json(plot(parsedInput, parsedSettings));
res.status(200).send(plot(parsedInput, parsedSettings));
} catch (error) {
res.status(400).send("Unable to parse data");
}
Expand Down

1 comment on commit fd8806a

@vercel
Copy link

@vercel vercel bot commented on fd8806a Sep 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

simple-ascii-chart – ./

simple-ascii-chart-gtktsc.vercel.app
simple-ascii-chart.vercel.app
simple-ascii-chart-git-main-gtktsc.vercel.app

Please sign in to comment.