-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathplugin.json
More file actions
22 lines (22 loc) · 797 Bytes
/
plugin.json
File metadata and controls
22 lines (22 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"id": "nodebb-plugin-write-api",
"name": "NodeBB Write-Enabled API",
"description": "A RESTful JSON-speaking API allowing you to write things to NodeBB",
"url": "https://github.com/julianlam/nodebb-plugin-write-api",
"library": "./index.js",
"templates": "templates",
"hooks": [
{ "hook": "static:app.load", "method": "init" },
{ "hook": "filter:admin.header.build", "method": "addMenuItem" },
{ "hook": "response:middleware.authenticate", "method": "authenticate"},
{ "hook": "filter:router.page", "method": "filterRouterPage" },
{ "hook": "response:router.page", "method": "responseRouterPage" },
{ "hook": "action:settings.set", "method": "reloadSettings" }
],
"less": [
"./less/style.less"
],
"modules": {
"../admin/plugins/write-api.js": "public/js/admin.js"
}
}