update:add ci cd files ==> do not edit those file
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
const mongoose = require('mongoose')
|
||||
|
||||
function file(file) {
|
||||
if (file) return '/uploads/images/setting/' + file
|
||||
}
|
||||
|
||||
const SiteSettingSchema = mongoose.Schema({
|
||||
aboutUS: {type: String, get: file, default: 'undefined'},
|
||||
activity: {type: String, get: file, default: ''},
|
||||
projects: {type: String, get: file, default: ''},
|
||||
gallery: {type: String, get: file, default: ''},
|
||||
catalog: {type: String, get: file, default: ''},
|
||||
blogs: {type: String, get: file, default: ''},
|
||||
})
|
||||
|
||||
module.exports = mongoose.model('SiteSetting', SiteSettingSchema)
|
||||
Reference in New Issue
Block a user