Need to work on story redirect after submission, fix url link in stories/show

This commit is contained in:
Nathan Leniz
2015-03-05 19:21:26 +09:00
parent 6a9bfc5ebf
commit 41442a540f
9 changed files with 159 additions and 32 deletions

View File

@@ -14,7 +14,7 @@ var storySchema = new mongoose.Schema({
type: String,
unique: false
},
body: {
description: {
type: String,
unique: false
},
@@ -30,6 +30,14 @@ var storySchema = new mongoose.Schema({
comments: {
type: Array,
default: []
},
image: {
type: String,
default: ''
},
storyLink: {
type: String,
default: ''
}
});