lin-utils
v1.1.18
Published
util functions
Downloads
5
Readme
lin-utils
middlewares
getUser
- req - user id
- res - user json
###getUsers
- res - users json
###register
- req - user json
- res - error message or user json
###checkAccount check if user exists (return 200 or 400 as status)
schemas
###base add CreateDate and ModifyDate ###user
utils
addUser and removeUser function is usually used in integrated test. ###addUser
addUser(_user, cb)
###removeUser
removeUser(_user, cb)
###mongoose
open(uri, cb)
close(cb)
##packages ###auth
####api url | desc ---------------| ------------- /register | Register user /users | Get all users /check-account | Check if user exist ####Angular
- email directive - check if email is already used
###jwt
####api url | desc ----|----- /sign-in|check email, password and get jwt token