UNPKG

node-express-mongodb-jwt-rest-api-skeleton

Version:

Node.js express.js MongoDB JWT REST API - This is a basic API REST skeleton written on JavaScript using async/await. Great for building a starter web API for your front-end (Android, iOS, Vue, react, angular, or anything that can consume an API)

18 lines (16 loc) 472 B
const { forgotPassword } = require('./forgotPassword') const { getRefreshToken } = require('./getRefreshToken') const { login } = require('./login') const { register } = require('./register') const { resetPassword } = require('./resetPassword') const { roleAuthorization } = require('./roleAuthorization') const { verify } = require('./verify') module.exports = { forgotPassword, getRefreshToken, login, register, resetPassword, roleAuthorization, verify }