mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-11-03 20:45:58 +01:00 
			
		
		
		
	filter:widgets.getAreas - allows plugins to define widget locations in tpls
This commit is contained in:
		@@ -410,7 +410,11 @@ var nconf = require('nconf'),
 | 
			
		||||
			});
 | 
			
		||||
 | 
			
		||||
			app.get('/themes', function (req, res) {
 | 
			
		||||
				res.json(200, {});
 | 
			
		||||
				plugins.fireHook('filter:widgets.getAreas', [], function(err, widgets) {
 | 
			
		||||
					res.json(200, {
 | 
			
		||||
						widgets: widgets
 | 
			
		||||
					});
 | 
			
		||||
				});
 | 
			
		||||
			});
 | 
			
		||||
 | 
			
		||||
			app.get('/testing/categories', function (req, res) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user