diff --git a/src/handler.js b/src/handler.js index 51cbfcf..7ba62cb 100644 --- a/src/handler.js +++ b/src/handler.js @@ -1,7 +1,8 @@ +import path from 'path'; + const homeHandler = (req, res) => { console.log(req.query.name); - res.writeHead(200); - res.end('Home!'); + res.sendFile(`${path.resolve()}/src/html/home.html`); }; const ordersHandler = (_, res) => { diff --git a/src/html/home.html b/src/html/home.html new file mode 100644 index 0000000..111d981 --- /dev/null +++ b/src/html/home.html @@ -0,0 +1,19 @@ +
+ + +
+ +