Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
haoxin committed May 8, 2018
1 parent 94ba469 commit 181196f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ app.use(rewrite(/^\/i(\w+)/, '/items/$1'));
app.use(rewrite('/:src..:dst', '/commits/:src/to/:dst'));

// GET /js/jquery.js
app.use(rewrite('/js/*', '/public/assets/js/$1'));
app.use(rewrite('/js/(.*)', '/public/assets/js/$1'));

app.use(function(ctx) {
ctx.body = ctx.url + '\n';
Expand Down

0 comments on commit 181196f

Please sign in to comment.