user.js 582 B

1234567891011121314
  1. "use strict";
  2. var __importDefault = (this && this.__importDefault) || function (mod) {
  3. return (mod && mod.__esModule) ? mod : { "default": mod };
  4. };
  5. Object.defineProperty(exports, "__esModule", { value: true });
  6. var express_1 = __importDefault(require("express"));
  7. var user_1 = require("../services/user");
  8. var router = express_1.default.Router();
  9. router.post('/login', user_1.login);
  10. router.post('/logout', user_1.logout);
  11. router.post('/isLogin', user_1.isLogin);
  12. router.post('/auth', user_1.auth);
  13. router.get('/isAuth', user_1.isAuth);
  14. exports.default = router;