mirror of
				https://github.com/karl0ss/homepage.git
				synced 2025-11-04 08:20:58 +00:00 
			
		
		
		
	Fix: jsonrpchandler requires mappings (#3970)
This commit is contained in:
		
							parent
							
								
									8fa6454161
								
							
						
					
					
						commit
						52a4f1a423
					
				@ -4,6 +4,12 @@ const widget = {
 | 
				
			|||||||
  api: "{url}/jsonrpc",
 | 
					  api: "{url}/jsonrpc",
 | 
				
			||||||
  proxyHandler: jsonrpcProxyHandler,
 | 
					  proxyHandler: jsonrpcProxyHandler,
 | 
				
			||||||
  allowedEndpoints: /status/,
 | 
					  allowedEndpoints: /status/,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  mappings: {
 | 
				
			||||||
 | 
					    status: {
 | 
				
			||||||
 | 
					      endpoint: "status",
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export default widget;
 | 
					export default widget;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user