Ind.ie is now Small Technology Foundation.
Commit 370f24a2 authored by Bart Delrue's avatar Bart Delrue

Fixed code styling.

parent 411234ae
const errors = require('@feathersjs/errors');
const errors = require('@feathersjs/errors')
class Service {
constructor (options) {
......@@ -6,20 +6,17 @@ class Service {
}
async get (id, params) {
switch(id) {
switch (id) {
case 'available.gent':
return {
available: true
}
break;
case 'unavailable.gent':
return {
available: false
}
break;
case 'error.gent':
return new errors.Unavailable('Service unavailable. The domain check/registration service is unavailable.')
break;
default:
return new errors.BadRequest('Domain not valid, choose between available.gent, unavailable.gent and error.gent')
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment