mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-07 21:24:24 +08:00
[local-sync] fix builds. Routes with trailing slash and main extension
This commit is contained in:
parent
7a763b604e
commit
947eb99b8d
2 changed files with 3 additions and 3 deletions
|
@ -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",
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Add table
Reference in a new issue