Working gateway
Change-Id: I8ca690fe9d1b7f8e20b438df1ddd48d6b2f99326
diff --git a/src/controllers/clients.js b/src/controllers/clients.js
new file mode 100644
index 0000000..26270bc
--- /dev/null
+++ b/src/controllers/clients.js
@@ -0,0 +1,18 @@
+(function () {
+ 'use strict';
+ const _ = require('lodash');
+ const clients = [];
+
+ exports.clients = clients;
+
+ exports.add = (client) => {
+ // TODO check id that client is already there
+ if(!_.find(clients, ({id: client.id}))) {
+ clients.push(client);
+ }
+ }
+
+ exports.remove = (client) => {
+ _.remove(clients, {id: client.id});
+ }
+})();
\ No newline at end of file