Refactor post flow, get url info back from server, redirect to final submission form

This commit is contained in:
Nathan Leniz
2015-03-07 17:42:22 +09:00
parent b655cb7532
commit 9bea52d42f
6 changed files with 108 additions and 26 deletions

15
app.js
View File

@@ -317,11 +317,15 @@ app.get(
storyController.submitNew
);
app.post(
'/stories/',
storyController.storySubmission
app.get(
'/stories/submit/:newStory',
storyController.preSubmit
);
app.post(
'/stories/preliminary',
storyController.newStory
);
app.get(
'/stories/hot',
@@ -354,11 +358,6 @@ app.post(
storyController.upvote
);
app.post(
'/stories/getURLMetaData',
resourcesController.getMetaData
);
/**
* Challenge related routes
*/