Skip to content

Commit

Permalink
feat(cdb): fix routing syntax for cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
wzr1337 committed Apr 5, 2018
1 parent bc7073e commit 4361fb4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dist/web.server.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/web.server.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
],
"license": "MIT",
"dependencies": {
"@rsi/core": "https://github.com/wzr1337/rsi.core#0.2.4",
"@rsi/cdn": "https://github.com/wzr1337/rsi.cdn#0.2.5",
"@rsi/core": "https://github.com/wzr1337/rsi.core#0.2.5",
"@rsi/cdn": "https://github.com/wzr1337/rsi.cdn#0.2.6",
"body-parser": "^1.18.2",
"compression": "^1.7.1",
"cors": "^2.8.4",
Expand Down
2 changes: 1 addition & 1 deletion src/web.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class WebServer {
this.app.use(compression());

// serve static content for cdn
this.app.use(this._BASEURI + "cdn/images", Cdn.getInstance().process());
this.app.use(this._BASEURI + "cdn/:resource/:filename?", Cdn.getInstance().requestHandler());

// Get port from environment and store in Express.
this.port = this.normalizePort(process.env.PORT || port || "3000");
Expand Down

0 comments on commit 4361fb4

Please sign in to comment.