Added start of individual post view and post lists view, wired upvoting functionality for individual posts

This commit is contained in:
Nathan Leniz
2015-03-03 22:03:33 +09:00
parent 94bbb7a4a5
commit 4b84b49d07
8 changed files with 307 additions and 26 deletions

4
app.js
View File

@@ -292,6 +292,10 @@ app.get(
'/stories/:storyName',
storyController.returnIndividualStory
);
app.post(
'/stories/upvote/:id',
storyController.upvote
);
/**
* Challenge related routes