Skip to content

Commit

Permalink
Move schemas to api/lib/
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Clark committed Mar 16, 2015
1 parent af4389d commit 375d40a
Show file tree
Hide file tree
Showing 21 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion api/lib/db-interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var defaultLogger = {
info: noop,
warn: noop,
error: noop
}
};

/**
* @constructor DatabaseInterface
Expand Down
2 changes: 1 addition & 1 deletion api/lib/schema-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var fs = require('fs');
var path = require('path');
var JaySchema = require('jayschema');

var baseDir = path.join(__dirname, '../../schemas');
var baseDir = path.join(__dirname, './schemas');

module.exports = (function() {
var validator = new JaySchema();
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions api/transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,7 @@ function getTransaction(api, account, identifier, callback) {
* See getTransaction for parameter details
*/
function getTransactionAndRespond(account, identifier, callback) {
var api = this;
getTransaction(api, account, identifier, function(error, transaction) {
getTransaction(this, account, identifier, function(error, transaction) {
if (error) {
callback(error);
} else {
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';
var router = require('./server/router.js');
var remote = require('./api/lib/remote.js');
var remote = require('./server/api').remote;

function RippleRestPlugin() {
this.router = router;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion server/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var path = require('path');
var nconf = require('nconf');
var JaySchema = require('jayschema');
var formatJaySchemaErrors = require('jayschema-error-messages');
var configSchema = require('../schemas/config.json');
var configSchema = require('./config-schema.json');
var exampleConfig = require('../config-example.json');

/**
Expand Down

0 comments on commit 375d40a

Please sign in to comment.