Skip to content

titarenko/crudex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crudex

CRUD+ controllers for bex

Example

require('crudex')(db, {
	table: 'table',
	view: 'v_table',
	validator: {
		name: v.isLength(10),
		email: v.isEmail()
	},
	create: {
		before: function (params) {
			params.password = bcrypt(params.password);
		}
	},
	'&/plus10/:param': function (params) {
		return this.json({ param: params.param + 10 });
	}
})

todo: good readme

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published