nodebb-plugin-s3-uploads
Advanced tools
Comparing version 0.3.0 to 0.3.1
10
index.js
@@ -116,3 +116,3 @@ var Package = require("./package.json"); | ||
plugin.load = function(app, middleware, controllers, callback){ | ||
plugin.load = function(params, callback){ | ||
fetchSettings(function(err) { | ||
@@ -123,7 +123,7 @@ if (err) { | ||
app.get(adminRoute, middleware.admin.buildHeader, renderAdmin); | ||
app.get('/api' + adminRoute, renderAdmin); | ||
params.router.get(adminRoute, params.middleware.applyCSRF, params.middleware.admin.buildHeader, renderAdmin); | ||
params.router.get('/api' + adminRoute, params.middleware.applyCSRF, renderAdmin); | ||
app.post('/api' + adminRoute + '/s3settings', s3settings); | ||
app.post('/api' + adminRoute + '/credentials', credentials); | ||
params.router.post('/api' + adminRoute + '/s3settings', params.middleware.applyCSRF, s3settings); | ||
params.router.post('/api' + adminRoute + '/credentials', params.middleware.applyCSRF, credentials); | ||
@@ -130,0 +130,0 @@ callback(); |
{ | ||
"name": "nodebb-plugin-s3-uploads", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "A plugin for NodeBB to take file uploads and store them on S3", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
{ | ||
"id": "nodebb-plugin-s3-uploads", | ||
"minver": "0.3.2", | ||
"name": "S3 Uploads Plugin", | ||
@@ -20,4 +19,3 @@ "description": "A plugin that takes file uploads and store them on S3", | ||
], | ||
"compatibility": "~0.5.0", | ||
"templates": "./public/templates" | ||
} |
18431
266