mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 01:22:54 +00:00
style: remove extraneous whitespace in imports
This commit is contained in:
committed by
Rainer Killinger
parent
16bbb7e9e3
commit
98f02b8830
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user