style: remove extraneous whitespace in imports

This commit is contained in:
Anselm Stordeur
2019-01-09 14:30:44 +01:00
committed by Rainer Killinger
parent 16bbb7e9e3
commit 98f02b8830
20 changed files with 77 additions and 79 deletions

View File

@@ -19,11 +19,11 @@ import {
SCRoute,
SCValidationErrorResponse,
} from '@openstapps/core';
import { SCValidator } from '@openstapps/core-validator';
import { Application, Router } from 'express';
import {SCValidator} from '@openstapps/core-validator';
import {Application, Router} from 'express';
import PromiseRouter from 'express-promise-router';
import { logger } from '../common';
import { isHttpMethod } from './HTTPTypes';
import {logger} from '../common';
import {isHttpMethod} from './HTTPTypes';
/**
* Creates a router from a route class (model of a route) and a handler function which implements the logic
@@ -39,7 +39,7 @@ export function createRoute<RETURNTYPE>(
handler: (validatedBody: any, app: Application, params?: { [parameterName: string]: string }) => Promise<RETURNTYPE>,
): Router {
// create router
const router = PromiseRouter({ mergeParams: true });
const router = PromiseRouter({mergeParams: true});
// create route
// the given type has no index signature so we have to cast to get the IRouteHandler when a HTTP method is given