Skip to content

Commit

Permalink
Fixing the object for res.send to res.end()
Browse files Browse the repository at this point in the history
  • Loading branch information
markojak committed Dec 12, 2021
1 parent 58d605c commit 8d9795f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions pages/api/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ export default function handler(
) {
if (req.method === "GET") {

const Directory = resolve(process.cwd(), "extensions");
const Directory = resolve(process.cwd(), "docs");
const resume = readFileSync(
join(Directory, "index.md"),
"utf8"
);
return res.status(200).send(
return res.status(200).end(
resume
);
} else {
Expand Down

0 comments on commit 8d9795f

Please sign in to comment.