text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  const components_1 = require("../components");
  const express_1 = require("express");
  /**
   * @constant {express.Router}
   */
  const router = express_1.Router();
  /**
   * POST method route
   * @example http://localhost:PORT/signup
   * @swagger
   * /auth/signup/:
   *  post:
   *    description: sign up user to application
   *    tags: ["auth"]
   *    requestBody:
   *      description: sign up body
   *      required: true
   *      content:
   *        application/json:
   *          schema:
   *            $ref: '#/components/schemas/UserSchema'
   *          example:
   *            email: test.user@mail.com
   *            password: test_test
   *    responses:
   *      200:
   *        description: user successfuly signed in
   *        content:
   *          appication/json:
   *            example:
   *              status: 200
   *              logged: true
   *              message: Sign in successfull!!
   *      400:
   *        description: sign in failed
   *        content:
   *          application/json:
   *            example:
   *              status: 400
   *              logged: false
   *              message: Email already exists
   */
  router.post('/signup', components_1.AuthComponent.signup);
  /**
   * POST method route
   * @example http://localhost:PORT/login
   *
   * @swagger
   * /auth/login/:
   *  post:
   *    description: Login user to application
   *    tags: ["auth"]
   *    requestBody:
   *      description: login body
   *      required: true
   *      content:
   *        application/json:
   *          schema:
   *            $ref: '#/components/schemas/UserSchema'
   *          example:
   *            email: test.user@mail.com
   *            password: test_test
   *    responses:
   *      200:
   *        description: user successfuly logged
   *        content:
   *          appication/json:
   *            example:
   *              status: 200
   *              logged: true
   *              message: Successfully logged!
   *      401:
   *        description: Not logged, invalid credentials
   *        content:
   *          application/json:
   *            example:
   *              status: 401
   *              logged: false
   *              message: Invalid credentials
   */
  router.post('/login', components_1.AuthComponent.login);
  /**
   * @export {express.Router}
   */
  exports.default = router;
  //# sourceMappingURL=AuthRouter.js.map