Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch 1 #88

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@ app.get('/', function (req, res) {
app.get('/ui/style.css', function (req, res) {
res.sendFile(path.join(__dirname, 'ui', 'style.css'));
});

app.get('/article-one', function(req,res){
res.send('Article one will be served');
});
app.get('/article-two', function(req,res){
res.send('Article two will be served');
});
app.get('/article-three', function(req,res){
res.send('Article three will be served');
});
app.get('/ui/madi.png', function (req, res) {
res.sendFile(path.join(__dirname, 'ui', 'madi.png'));
});
Expand Down
5 changes: 4 additions & 1 deletion ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
</div>
<br>
<div class="center text-big bold">
Hi! I am your webapp.
Hi! this is mohan!! welcome to my webapp.
</div>
<script>
alert('wecome to itsmokie's webapp');
</script>
<script type="text/javascript" src="/ui/main.js">
</script>
</body>
Expand Down
1 change: 1 addition & 0 deletions ui/testing_1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@