Skip to content

Commit

Permalink
Create html1.js
Browse files Browse the repository at this point in the history
  • Loading branch information
v1212 authored Sep 4, 2023
1 parent dfb69ed commit b8f8a84
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pages/api/html1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction

export default function handler(req, res) {
res.setHeader('Content-Type', 'text/html');
res.statusCode = 200;
res.end('<h1>Hello, World!</h1>');
}

0 comments on commit b8f8a84

Please sign in to comment.