From 90fc778e8197df6fda363f96542d4c7894931c31 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Fri, 19 May 2017 12:05:20 +0430 Subject: [PATCH] Middlewares ~> Middleware https://english.stackexchange.com/questions/257120/middleware-vs-middlewares --- lib/nuxt.js | 2 +- lib/server.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/nuxt.js b/lib/nuxt.js index dbc5a7c4d2..5053327f0b 100644 --- a/lib/nuxt.js +++ b/lib/nuxt.js @@ -28,7 +28,7 @@ class Nuxt { css: [], modules: [], layouts: {}, - serverMiddlewares: [], + serverMiddleware: [], ErrorPage: null, cache: false, loading: { diff --git a/lib/server.js b/lib/server.js index cf9853e1a1..fc728c383e 100644 --- a/lib/server.js +++ b/lib/server.js @@ -9,8 +9,8 @@ class Server { // Initialize this.app = connect() this.server = http.createServer(this.app) - // Add Middlewares - this.nuxt.options.serverMiddlewares.forEach(m => { + // Add Middleware + this.nuxt.options.serverMiddleware.forEach(m => { if (m instanceof Function) { this.app.use(m) } else if (m && m.path && m.handler) {