personal_website/models/photoModel.js
2023-06-25 00:46:46 +02:00

10 lines
204 B
JavaScript

var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var photoSchema = new Schema({
'name' : String,
'path' : String
});
module.exports = mongoose.model('photo', photoSchema);