Commit Graph

11 Commits

Author SHA1 Message Date
joeuhren f70952f66b Disable api page + public apis when settings.display.api = false 2020-12-31 15:45:31 -07:00
joeuhren 374ab2d7aa Add new settings to disable individual public apis
-All coind + extended public api calls can now be enabled/disabled individually via settings.json; Disabled apis still work internally when disabled; The only noteworthy exception is the extended /ext/getlasttxs endpoint which is the only extended api consumed by the explorer itself, although it works to prevent outside access by default, it is controlled by http headers which can be manipulated and it's extremely likely that a savvy user could enable usage of /ext/getlasttxs for their own needs even if the site has specifically disabled that public api. More thought may be needed to properly resolve that problem, but it may also not be a big deal since it's data that is available to the explorer and in no way hidden or secret
-Disabled apis do not show up on the /info page and will return a "This method is disabled" msg if the endpoint is called
-Applied some code formatting to the /lib/nodeapi.js file
2020-12-28 15:12:56 -07:00
joeuhren c9fdb2013e Dynamically enable wallet api cmds based on settings
-Added a 'heavies' object to the api_cmds setting and moved all heavy api calls inside to allow for better separation of api calls
2020-12-21 19:28:55 -07:00
joeuhren dfbd2d9046 verifymessage added to api cmd settings 2020-12-21 18:12:40 -07:00
joeuhren 4a084cdfe1 Split out peer cmds into new functions
-Add new setting for getpeerinfo cmd
-getpeerinfo api call moved to explorer.js
-Peer geo location api call moved to explorer.js
2020-12-21 16:19:14 -07:00
joeuhren 4240178255 Add support for customizing all daemon api cmds 2020-12-07 21:32:43 -07:00
joeuhren a66f9cb7e4 Address Labels -> Claim Address 2020-11-22 14:39:10 -07:00
joeuhren 035141c389 All api end-points now return text values with HTTP header content-type 'text/plain' 2020-05-22 12:01:02 -06:00
joeuhren e645ee8635 added support for customizing daemon api cmds [getmasternodecount only so far] 2019-10-09 13:04:32 -06:00
joeuhren 16ac95cec3 fix for more common masternode list api 2019-10-01 19:27:44 -06:00
Joe Uhren 60fb8e29b4 Initial release 2019-05-27 10:33:22 -07:00