Step 3: Blog Functioalities For Logged In Users
create a validation for posts: create a blog.validate.js file in the validator folder in the root directory and update it with the code below to handle blogs created in the database.
const Joi = require("joi");
const createPost = Joi.object({
titl...
proton-code-blog.hashnode.dev7 min read