[local-sync] fix builds. Routes with trailing slash and main extension

This commit is contained in:
Evan Morikawa 2016-12-08 14:16:37 -08:00
parent 7a763b604e
commit 947eb99b8d
2 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@
"name": "local-sync",
"version": "0.0.1",
"description": "The local sync engine for Nylas N1",
"main": "./main.es6",
"main": "./main",
"dependencies": {
"googleapis": "9.0.0",
"hapi": "13.4.1",

View file

@ -78,8 +78,8 @@ const attach = (directory) => {
server.register(plugins, (err) => {
if (err) { throw err; }
attach('./routes/')
attach('./decorators/')
attach('./routes')
attach('./decorators')
server.auth.strategy('api-consumer', 'basic', { validateFunc: validate });
server.auth.default('api-consumer');