Skip to content

Instantly share code, notes, and snippets.

View rubenerangel's full-sized avatar
🏠
Working from home

Rubén Rangel rubenerangel

🏠
Working from home
View GitHub Profile
@urielhdz
urielhdz / categories.js
Last active June 28, 2023 13:57
CRUD de categories
const Category = require('../models').Category;
module.exports = {
create: function(req,res){
Category.create({
title: req.body.title,
color: req.body.color
}).then(result =>{
res.json(result);
}).catch(err=>{