Skip to content

Commit b373439

Browse files
committed
chore: remove stub code that mounted an admin page when there wasn't meant to be one
1 parent 7f40932 commit b373439

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

lib/controllers.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ const ntfy = require('./ntfy');
1010

1111
const Controllers = module.exports;
1212

13-
Controllers.renderAdminPage = function (req, res/* , next */) {
14-
res.render('admin/plugins/ntfy', {});
15-
};
16-
1713
Controllers.renderSettings = async function (req, res) {
1814
if (res.locals.uid !== req.user.uid) {
1915
return helpers.notAllowed(req, res);

library.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ plugin.init = async (params) => {
2626
];
2727

2828
routeHelpers.setupPageRoute(router, '/user/:userslug/ntfy', accountMiddlewares, controllers.renderSettings);
29-
30-
routeHelpers.setupAdminPageRoute(router, '/admin/plugins/ntfy', [], controllers.renderAdminPage);
3129
};
3230

3331
plugin.addRoutes = async ({ router, middleware }) => {
@@ -39,16 +37,6 @@ plugin.addRoutes = async ({ router, middleware }) => {
3937
routeHelpers.setupApiRoute(router, 'post', '/ntfy/test', middlewares, controllers.sendTestNotification);
4038
};
4139

42-
plugin.addAdminNavigation = (header) => {
43-
header.plugins.push({
44-
route: '/plugins/ntfy',
45-
icon: 'fa-tint',
46-
name: 'Push Notifications (ntfy)',
47-
});
48-
49-
return header;
50-
};
51-
5240
plugin.addProfileItem = async (data) => {
5341
const title = await translator.translate('[[ntfy:profile.label]]');
5442
data.links.push({

0 commit comments

Comments
 (0)