"use strict";var cov_1hb41h5zwr=function(){var path="/Users/josh.burman/Projects/braid/dist/server/routes.js";var hash="c4d590f2c6dcf78a827ead7408903c087e1921c2";var Function=function(){}.constructor;var global=new Function("return this")();var gcv="__coverage__";var coverageData={path:"/Users/josh.burman/Projects/braid/dist/server/routes.js",statementMap:{"0":{start:{line:2,column:0},end:{line:2,column:62}},"1":{start:{line:3,column:13},end:{line:3,column:28}},"2":{start:{line:4,column:16},end:{line:4,column:34}},"3":{start:{line:5,column:10},end:{line:5,column:33}},"4":{start:{line:6,column:18},end:{line:15,column:1}},"5":{start:{line:8,column:8},end:{line:13,column:9}},"6":{start:{line:9,column:12},end:{line:9,column:33}},"7":{start:{line:12,column:12},end:{line:12,column:74}},"8":{start:{line:16,column:13},end:{line:16,column:29}},"9":{start:{line:18,column:20},end:{line:18,column:58}},"10":{start:{line:19,column:0},end:{line:19,column:53}},"11":{start:{line:21,column:21},end:{line:21,column:60}},"12":{start:{line:22,column:0},end:{line:22,column:80}},"13":{start:{line:23,column:0},end:{line:23,column:24}}},fnMap:{"0":{name:"(anonymous_0)",decl:{start:{line:7,column:12},end:{line:7,column:13}},loc:{start:{line:7,column:34},end:{line:14,column:5}},line:7}},branchMap:{"0":{loc:{start:{line:8,column:8},end:{line:13,column:9}},type:"if",locations:[{start:{line:8,column:8},end:{line:13,column:9}},{start:{line:8,column:8},end:{line:13,column:9}}],line:8}},s:{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0},f:{"0":0},b:{"0":[0,0]},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"};var coverage=global[gcv]||(global[gcv]={});if(coverage[path]&&coverage[path].hash===hash){return coverage[path];}coverageData.hash=hash;return coverage[path]=coverageData;}();cov_1hb41h5zwr.s[0]++;Object.defineProperty(exports,"__esModule",{value:true});const cors=(cov_1hb41h5zwr.s[1]++,require("cors"));const express=(cov_1hb41h5zwr.s[2]++,require("express"));var app=(cov_1hb41h5zwr.s[3]++,require('./config/app'));var corsOptions=(cov_1hb41h5zwr.s[4]++,{origin:(origin,callback)=>{cov_1hb41h5zwr.f[0]++;cov_1hb41h5zwr.s[5]++;if(app.whitelist.indexOf(origin)!==-1){cov_1hb41h5zwr.b[0][0]++;cov_1hb41h5zwr.s[6]++;callback(null,true);}else{cov_1hb41h5zwr.b[0][1]++;cov_1hb41h5zwr.s[7]++;callback(new Error(`Not allowed by CORS. Origin: ${origin}`));}}});var router=(cov_1hb41h5zwr.s[8]++,express.Router());//application
var appController=(cov_1hb41h5zwr.s[9]++,require('./controllers/appController'));cov_1hb41h5zwr.s[10]++;router.route(['/','/home']).get(appController.home);//auth
var authController=(cov_1hb41h5zwr.s[11]++,require('./controllers/authController'));cov_1hb41h5zwr.s[12]++;router.route('/auth/user').post(cors(corsOptions),authController.confirmToken);cov_1hb41h5zwr.s[13]++;module.exports=router;//# sourceMappingURL=routes.js.map