personal_website/models/photoModel.js
Nikola Petrov f240d4e7c5 format
2023-08-02 14:27:35 +02:00

10 lines
202 B
JavaScript

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