From 98c521d1500478a51ca34b08711407fe6697cae8 Mon Sep 17 00:00:00 2001 From: KAI LIU Date: Thu, 26 Sep 2024 20:21:34 +1000 Subject: [PATCH] feat: add about us --- index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.js b/index.js index dfa05a0..f634d19 100644 --- a/index.js +++ b/index.js @@ -2,6 +2,13 @@ const express = require('express'); const app = express(); +app.get('/', function(req,res){ + res.send('hello world') +}) + +app.get('/about', function(req,res){ + res.send('About Us') +}) app.listen(8080, ()=>{ console.log('Listening at port 8080.') }) \ No newline at end of file