'use strict';Object.defineProperty(exports, "__esModule", { value: true });exports.default = undefined;var _createClass = function () {function defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}return function (Constructor, protoProps, staticProps) {if (protoProps) defineProperties(Constructor.prototype, protoProps);if (staticProps) defineProperties(Constructor, staticProps);return Constructor;};}();var _dec, _dec2, _dec3, _dec4, _dec5, _class, _desc, _value, _class2;
var _base = require('@themost/web/controllers/base');var HttpBaseController = _interopRequireDefault(_base).default;
var _decorators = require('@themost/web/decorators');var httpController = _decorators.httpController;var httpGet = _decorators.httpGet;var httpAction = _decorators.httpAction;
var _path = require('path');var path = _interopRequireDefault(_path).default;function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self, call) {if (!self) {throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call && (typeof call === "object" || typeof call === "function") ? call : self;}function _inherits(subClass, superClass) {if (typeof superClass !== "function" && superClass !== null) {throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);}subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;}function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) {var desc = {};Object['ke' + 'ys'](descriptor).forEach(function (key) {desc[key] = descriptor[key];});desc.enumerable = !!desc.enumerable;desc.configurable = !!desc.configurable;if ('value' in desc || desc.initializer) {desc.writable = true;}desc = decorators.slice().reverse().reduce(function (desc, decorator) {return decorator(target, property, desc) || desc;}, desc);if (context && desc.initializer !== void 0) {desc.value = desc.initializer ? desc.initializer.call(context) : void 0;desc.initializer = undefined;}if (desc.initializer === void 0) {Object['define' + 'Property'](target, property, desc);desc = null;}return desc;}var


RootController = (_dec = httpController(), _dec2 =





httpGet(), _dec3 =
httpAction('index'), _dec4 =








httpGet(), _dec5 =
httpAction('hello'), _dec(_class = (_class2 = function (_HttpBaseController) {_inherits(RootController, _HttpBaseController);function RootController(context) {_classCallCheck(this, RootController);return _possibleConstructorReturn(this, (RootController.__proto__ || Object.getPrototypeOf(RootController)).call(this, context));}_createClass(RootController, [{ key: 'getIndex', value: function getIndex() {return Promise.resolve(this.view());} /**
                                                                                                                                                                                                                                                                                                                                                                                                                                                           * GET /hello.html
                                                                                                                                                                                                                                                                                                                                                                                                                                                           * @returns {Promise<{message: string}>}
                                                                                                                                                                                                                                                                                                                                                                                                                                                           */ }, { key: 'hello', value: function hello() {return Promise.resolve({ message: "Hello World!" });

        } }]);return RootController;}(HttpBaseController), (_applyDecoratedDescriptor(_class2.prototype, 'getIndex', [_dec2, _dec3], Object.getOwnPropertyDescriptor(_class2.prototype, 'getIndex'), _class2.prototype), _applyDecoratedDescriptor(_class2.prototype, 'hello', [_dec4, _dec5], Object.getOwnPropertyDescriptor(_class2.prototype, 'hello'), _class2.prototype)), _class2)) || _class);exports.default = RootController;module.exports = exports['default'];
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbnRyb2xsZXJzL3Jvb3QtY29udHJvbGxlci5qcyJdLCJuYW1lcyI6WyJIdHRwQmFzZUNvbnRyb2xsZXIiLCJodHRwQ29udHJvbGxlciIsImh0dHBHZXQiLCJodHRwQWN0aW9uIiwicGF0aCIsIlJvb3RDb250cm9sbGVyIiwiY29udGV4dCIsIlByb21pc2UiLCJyZXNvbHZlIiwidmlldyIsIm1lc3NhZ2UiXSwibWFwcGluZ3MiOiI7QUFDQSxxRCxJQUFPQSxrQjtBQUNQLHFELElBQVFDLGMsZUFBQUEsYyxLQUFlQyxPLGVBQUFBLE8sS0FBUUMsVSxlQUFBQSxVO0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4gICAgLyoqXG4gICAgICogR0VUIC9oZWxsby5odG1sXG4gICAgICogQHJldHVybnMge1Byb21pc2U8e21lc3NhZ2U6IHN0cmluZ30+fVxuICAgICAqL1xuICAgIEBodHRwR2V0KClcbiAgICBAaHR0cEFjdGlvbignaGVsbG8nKVxuICAgIGhlbGxvKCkge1xuICAgICAgICByZXR1cm4gUHJvbWlzZS5yZXNvbHZlKHtcbiAgICAgICAgICAgIG1lc3NhZ2U6IFwiSGVsbG8gV29ybGQhXCJcbiAgICAgICAgfSk7XG4gICAgfVxuICAgIFxuICAgIFxufSJdfQ==
//# sourceMappingURL=root-controller.js.map
