mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-08 21:55:54 +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",
|
"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",
|
||||||
|
|
|
@ -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');
|
||||||
|
|
Loading…
Add table
Reference in a new issue