Fix paths
This commit is contained in:
@@ -26,10 +26,10 @@ const openpgp = require('openpgp');
|
||||
const nodemailer = require('nodemailer');
|
||||
const Mongo = require('./dao/mongo');
|
||||
const Email = require('./dao/email');
|
||||
const UserId = require('./ctrl/user-id');
|
||||
const PublicKey = require('./ctrl/public-key');
|
||||
const HKP = require('./routes/hkp');
|
||||
const REST = require('./routes/rest');
|
||||
const UserId = require('./service/user-id');
|
||||
const PublicKey = require('./service/public-key');
|
||||
const HKP = require('./route/hkp');
|
||||
const REST = require('./route/rest');
|
||||
|
||||
let mongo, email, userId, publicKey, hkp, rest;
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
'use strict';
|
||||
|
||||
const parse = require('co-body');
|
||||
const util = require('../ctrl/util');
|
||||
const util = require('../service/util');
|
||||
|
||||
/**
|
||||
* An implementation of the OpenPGP HTTP Keyserver Protocol (HKP)
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
'use strict';
|
||||
|
||||
const parse = require('co-body');
|
||||
const util = require('../ctrl/util');
|
||||
const util = require('../service/util');
|
||||
|
||||
/**
|
||||
* The REST api to provide additional functionality on top of HKP
|
||||
|
||||
@@ -30,16 +30,16 @@ const util = require('./util');
|
||||
const DB_TYPE = 'publickey';
|
||||
|
||||
/**
|
||||
* A controller that handlers PGP public keys queries to the database
|
||||
* A service that handlers PGP public keys queries to the database
|
||||
*/
|
||||
class PublicKey {
|
||||
|
||||
/**
|
||||
* Create an instance of the controller
|
||||
* Create an instance of the service
|
||||
* @param {Object} openpgp An instance of OpenPGP.js
|
||||
* @param {Object} mongo An instance of the MongoDB client
|
||||
* @param {Object} email An instance of the Email Sender
|
||||
* @param {Object} userid An instance of the UserId controller
|
||||
* @param {Object} userid An instance of the UserId service
|
||||
*/
|
||||
constructor(openpgp, mongo, email, userid) {
|
||||
this._openpgp = openpgp;
|
||||
|
||||
@@ -31,12 +31,12 @@
|
||||
const DB_TYPE = 'userid';
|
||||
|
||||
/**
|
||||
* A controller that handles User ID queries to the database
|
||||
* A service that handles User ID queries to the database
|
||||
*/
|
||||
class UserId {
|
||||
|
||||
/**
|
||||
* Create an instance of the controller
|
||||
* Create an instance of the service
|
||||
* @param {Object} mongo An instance of the MongoDB client
|
||||
*/
|
||||
constructor(mongo) {
|
||||
|
||||
Reference in New Issue
Block a user