Fix paths

This commit is contained in:
Tankred Hase
2016-05-28 15:17:46 +02:00
parent 2f789eeb42
commit 0d2eba47ec
7 changed files with 14 additions and 14 deletions

View File

@@ -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;

View File

@@ -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)

View File

@@ -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

View File

@@ -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;

View File

@@ -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) {