Skip to content

Commit

Permalink
refactor: Delete metadata.ts in rest
Browse files Browse the repository at this point in the history
  • Loading branch information
jannyHou committed Dec 13, 2017
1 parent 1de5e5a commit 3ea93b8
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 1,444 deletions.
4 changes: 2 additions & 2 deletions packages/rest/src/http-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
// License text available at https://opensource.org/licenses/MIT

import {Context} from '@loopback/context';
import {PathsObject} from '@loopback/openapi-spec';
import {PathsObject, ControllerSpec} from '@loopback/openapi-spec';
import {ServerRequest, ServerResponse} from 'http';
import {ControllerSpec} from './router/metadata';
// import {ControllerSpec} from './router/metadata';

import {SequenceHandler} from './sequence';
import {
Expand Down
2 changes: 1 addition & 1 deletion packages/rest/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export {
parseRequestUrl,
} from './router/routing-table';

export * from './router/metadata';
export * from '@loopback/openapi-spec';
export * from './providers';

// import all errors from external http-errors package
Expand Down
3 changes: 2 additions & 1 deletion packages/rest/src/rest-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ import {
import {ServerRequest, ServerResponse, createServer} from 'http';
import * as Http from 'http';
import {Application, CoreBindings, Server} from '@loopback/core';
import {getControllerSpec} from './router/metadata';
import {getControllerSpec} from '@loopback/openapi-spec';
// import {getControllerSpec} from './router/metadata';
import {HttpHandler} from './http-handler';
import {DefaultSequence, SequenceHandler, SequenceFunction} from './sequence';
import {
Expand Down
Loading

0 comments on commit 3ea93b8

Please sign in to comment.