Skip to content

Commit

Permalink
correct misspell
Browse files Browse the repository at this point in the history
  • Loading branch information
npq7721 committed Nov 29, 2019
1 parent 7d6d442 commit 4877969
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var coreApi = require("./app/api/coreApi.js");
var auth = require('./app/auth.js');

var package_json = require('./package.json');
var Restfull = require('./routes/restfullRouter.js');
var Restful = require('./routes/restfulRouter.js');
global.appVersion = package_json.version;

var crawlerBotUserAgentStrings = [ "Googlebot", "Bingbot", "Slurp", "DuckDuckBot", "Baiduspider", "YandexBot", "Sogou", "Exabot", "facebot", "ia_archiver" ];
Expand Down Expand Up @@ -416,7 +416,7 @@ if(coins[config.coin].api) {
var limiter = rateLimit(apiProperties.limit);
var apiRounter = express.Router();
app.use(apiProperties.base_uri, limiter);
var restfullAPI = new Restfull(apiRounter, apiProperties);
var restfulAPI = new Restful(apiRounter, apiProperties);
app.use(apiProperties.base_uri, apiRounter);
}

Expand Down
3 changes: 1 addition & 2 deletions app/coins/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,7 @@ class CoinBase {
<br>&emsp;&emsp;"pooledtx": n (numeric) The size of the mempool
<br>&emsp;&emsp;"chain": "xxxx", (string) current network name as defined in BIP70 (main, test, regtest)
<br>&emsp;&emsp;"warnings": "..." (string) any network and blockchain warnings
<br>&emsp;&emsp;"errors": "..." (string) DEPRECATED. Same as warnings. Only shown when pigeond is started with -deprecatedrpc=getmininginfo
<br>}</li><ul>`
<br>}</li><ul>`
},
{
name : "supply",
Expand Down
2 changes: 1 addition & 1 deletion app/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ module.exports = {

{name:"RPC Browser", url:"/rpc-browser", desc:"Browse the RPC functionality of this node. See docs and execute commands.", fontawesome:"fas fa-book" , enabled : (process.env.BTCEXP_BASIC_AUTH_PASSWORD !== undefined)},
{name:"RPC Terminal", url:"/rpc-terminal", desc:"Directly execute RPCs against this node.", fontawesome:"fas fa-terminal", enabled : (process.env.BTCEXP_BASIC_AUTH_PASSWORD !== undefined)},
{name: "APIs", url:"/api", desc:"Restfull APIs service by this explorer", fontawesome:"fas fa-code", enabled : true},
{name: "APIs", url:"/api", desc:"Restful APIs service by this explorer", fontawesome:"fas fa-code", enabled : true},

{name:(coins[currentCoin].name + " Fun"), url:"/fun", desc:"See fun/interesting historical blockchain data.", fontawesome:"fas fa-certificate", enabled : true}
],
Expand Down
4 changes: 2 additions & 2 deletions routes/restfullRouter.js → routes/restfulRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var PageRender = require('./../app/pageRender.js');
var coins = require("./../app/coins.js");
var config = require("./../app/config.js");

class RestfullRouter {
class RestfulRouter {
constructor(router, apiProperties) {
var self = this;
apiProperties.api_map.forEach(api => {
Expand Down Expand Up @@ -168,4 +168,4 @@ class RestfullRouter {
}
}

module.exports = RestfullRouter;
module.exports = RestfulRouter;
4 changes: 2 additions & 2 deletions views/api.pug
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
extends layout

block headContent
title Restfull API information
title Restful API information

block content
script(src="/js/api.js")
h1.h3 Restfull API information
h1.h3 Restful API information
hr
div(class="row")
div(class="col-md-4")
Expand Down

0 comments on commit 4877969

Please sign in to comment.