add basic text search for post headlines

This commit is contained in:
Nathan Leniz
2015-03-06 09:20:30 +09:00
parent 0276c6867e
commit 6fc72de232
6 changed files with 85 additions and 13 deletions

5
app.js
View File

@@ -334,6 +334,11 @@ app.get(
storyController.search
);
app.post(
'/stories/search',
storyController.getStories
);
app.get(
'/stories/:storyName',
storyController.returnIndividualStory