[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", "name": "local-sync",
"version": "0.0.1", "version": "0.0.1",
"description": "The local sync engine for Nylas N1", "description": "The local sync engine for Nylas N1",
"main": "./main.es6", "main": "./main",
"dependencies": { "dependencies": {
"googleapis": "9.0.0", "googleapis": "9.0.0",
"hapi": "13.4.1", "hapi": "13.4.1",

View file

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