Skip to content

Commit

Permalink
Rename api server
Browse files Browse the repository at this point in the history
  • Loading branch information
tejerka committed Jun 4, 2018
1 parent 023c41c commit 94c5584
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const colors = require('colors/safe');
const read = require('fs-readdir-recursive');
const path = require('path');
const yaml = require('js-yaml');
const HttpAppServer = require('./http-app-server');
const HttpApiServer = require('./http-api-server');
const HttpMockServer = require('./http-mock-server');

const mocksDirectory = './mocks/';
Expand All @@ -25,7 +25,7 @@ class App {
this.buildEndpoints();
console.log(LOG_PREFIX + colors.cyan('Compilation ended'));
console.log(LOG_PREFIX + colors.cyan('Ready to handle connections...'));
this.httpAppServer = new HttpAppServer(this);
this.httpAppServer = new HttpApiServer(this);
this.httpMockServer = new HttpMockServer(this);
}

Expand Down
4 changes: 2 additions & 2 deletions app/http-app-server.js → app/http-api-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const express = require('express');
const bodyParser = require('body-parser');
const httpMockServer = require('./http-mock-server');

class HttpAppServer {
class HttpApiServer {
constructor(app) {
this.app = app;
this.api = express();
Expand Down Expand Up @@ -122,4 +122,4 @@ class HttpAppServer {
}
}

module.exports = HttpAppServer;
module.exports = HttpApiServer;

0 comments on commit 94c5584

Please sign in to comment.