Skip to content

Commit

Permalink
fix(platform-express): Export PlatformViews and fix express platform
Browse files Browse the repository at this point in the history
  • Loading branch information
Romakita committed Sep 28, 2020
1 parent 1d5580c commit fb2c013
Show file tree
Hide file tree
Showing 24 changed files with 1,076 additions and 622 deletions.
4 changes: 2 additions & 2 deletions .gflowrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"flow": "gflow",
"remote": "origin",
"develop": "alpha",
"production": "alpha",
"develop": "beta",
"production": "beta",
"ignores": [],
"syncAfterFinish": false,
"postFinish": "",
Expand Down
28 changes: 14 additions & 14 deletions examples/aws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@
"author": "",
"license": "MIT",
"dependencies": {
"@tsed/common": "5.60.2",
"@tsed/core": "5.60.2",
"@tsed/di": "5.60.2",
"@tsed/exceptions": "5.60.2",
"@tsed/swagger": "5.60.2",
"@tsed/platform-express": "5.60.2",
"@tsed/common": "6.0.0-beta.1",
"@tsed/core": "6.0.0-beta.1",
"@tsed/di": "6.0.0-beta.1",
"@tsed/exceptions": "6.0.0-beta.1",
"@tsed/swagger": "6.0.0-beta.1",
"@tsed/platform-express": "6.0.0-beta.1",
"@tsed/testing": "5.60.2",
"@types/swagger-schema-official": "2.0.21",
"@types/aws-serverless-express": "3.3.1",
"aws-serverless-express": "3.3.6",
"body-parser": "1.19.0",
"compression": "1.7.4",
"concurrently": "5.2.0",
"concurrently": "5.3.0",
"cors": "2.8.5",
"cookie-parser": "1.4.5",
"express": "4.17.1",
Expand All @@ -64,24 +64,24 @@
"@types/chai-as-promised": "7.1.3",
"@types/express": "4.17.7",
"@types/http-proxy": "^1.16.2",
"@types/mocha": "8.0.1",
"@types/node": "14.0.27",
"@types/mocha": "8.0.3",
"@types/node": "14.11.1",
"@types/request-promise": "^4.1.41",
"@types/sinon": "9.0.4",
"@types/sinon": "9.0.5",
"@types/sinon-chai": "3.2.4",
"@types/supertest": "2.0.10",
"chai": "4.2.0",
"chai-as-promised": "^7.1.1",
"cross-env": "7.0.2",
"mocha": "8.1.1",
"mocha": "8.1.3",
"nodemon": "^1.17.5",
"nyc": "15.1.0",
"rimraf": "^2.6.2",
"sinon": "9.0.2",
"sinon": "9.0.3",
"sinon-chai": "3.5.0",
"supertest": "^4.0.2",
"ts-node": "8.10.2",
"ts-node": "9.0.0",
"tslint": "6.1.3",
"typescript": "3.8.3"
"typescript": "4.0.2"
}
}
30 changes: 15 additions & 15 deletions examples/getting-started/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@
"author": "",
"license": "MIT",
"dependencies": {
"@tsed/common": "5.60.2",
"@tsed/core": "5.60.2",
"@tsed/di": "5.60.2",
"@tsed/platform-express": "5.60.2",
"@tsed/exceptions": "5.60.2",
"@tsed/swagger": "5.60.2",
"@tsed/common": "6.0.0-beta.1",
"@tsed/core": "6.0.0-beta.1",
"@tsed/di": "6.0.0-beta.1",
"@tsed/platform-express": "6.0.0-beta.1",
"@tsed/exceptions": "6.0.0-beta.1",
"@tsed/swagger": "6.0.0-beta.1",
"@types/swagger-schema-official": "2.0.21",
"body-parser": "1.19.0",
"cors": "2.8.5",
"compression": "1.7.4",
"concurrently": "5.2.0",
"concurrently": "5.3.0",
"cookie-parser": "1.4.5",
"express": "4.17.1",
"method-override": "^3.0.0",
Expand All @@ -46,24 +46,24 @@
"@types/cors": "2.8.6",
"@types/express": "4.17.7",
"@types/http-proxy": "1.17.2",
"@types/mocha": "8.0.1",
"@types/node": "14.0.27",
"@types/mocha": "8.0.3",
"@types/node": "14.11.1",
"@types/request-promise": "4.1.45",
"@types/sinon": "9.0.4",
"@types/sinon": "9.0.5",
"@types/sinon-chai": "3.2.4",
"@types/supertest": "2.0.10",
"chai": "4.2.0",
"chai-as-promised": "7.1.1",
"concurrently": "5.2.0",
"mocha": "8.1.1",
"concurrently": "5.3.0",
"mocha": "8.1.3",
"nodemon": "1.19.4",
"nyc": "15.1.0",
"rimraf": "3.0.0",
"sinon": "9.0.2",
"sinon": "9.0.3",
"sinon-chai": "3.5.0",
"supertest": "4.0.2",
"ts-node": "8.10.2",
"ts-node": "9.0.0",
"tslint": "6.1.3",
"typescript": "3.8.3"
"typescript": "4.0.2"
}
}
5 changes: 0 additions & 5 deletions examples/getting-started/src/Server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import * as cookieParser from "cookie-parser";
import * as cors from "cors";
import * as methodOverride from "method-override";
import {join} from "path";
import {GlobalErrorHandlerMiddleware} from "./middlewares/GlobalErrorHandlerMiddleware";

const rootDir = __dirname;

Expand Down Expand Up @@ -65,8 +64,4 @@ export class Server {

return null;
}

$afterRoutesInit() {
this.app.use(GlobalErrorHandlerMiddleware);
}
}
8 changes: 3 additions & 5 deletions examples/getting-started/src/controllers/events/EventsCtrl.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
import {
Authenticated,
BodyParams,
Controller,
Delete,
Get,
MergeParams,
PathParams,
Post,
Put,
Required,
Status,
UseBefore
} from "@tsed/common";
import {NotFound} from "@tsed/exceptions";
import {CheckCalendarIdMiddleware} from "../../middlewares/CheckCalendarIdMiddleware";
import {MergeParams} from "@tsed/platform-express";
import {Required} from "@tsed/schema";
import {Event} from "../../interfaces/Event";
import {Task} from "../../interfaces/Task";
import {CheckCalendarIdMiddleware} from "../../middlewares/CheckCalendarIdMiddleware";

@Controller("/:calendarId/events")
@MergeParams(true)
Expand Down Expand Up @@ -80,7 +79,6 @@ export class EventsCtrl {
}

@Delete("/:id")
@Authenticated()
@Status(204)
async remove(@Required() @PathParams("calendarId") calendarId: string,
@PathParams("id") id: string): Promise<void> {
Expand Down

This file was deleted.

Loading

0 comments on commit fb2c013

Please sign in to comment.