asenawritescode/portfolio-builder

Redo the links feature !!

Opened this issue · 0 comments

I have removed the link schema to easen development but I might need to return it.

ie.
Give a link:
asena.com/profile-sth

platform - asena
link - asena.com/profile-sth

Expected behavior

Pick the platform and link as provided in the schema below !.

// Mongo schema
const socialMediaSchema = new mongoose.Schema({
    platform: {
        type: String,
        required: [true, 'Platform is required']
    },
    link: {
        type: String,
        required: [true, 'Link is required']
    }
});