Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
updating route middleware template
Browse files Browse the repository at this point in the history
  • Loading branch information
lukepolo committed Sep 25, 2018
1 parent dc9c3d8 commit bb670c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "varie-cli",
"version": "0.4.1",
"version": "0.4.2",
"description": "A CLI for scaffolding Varie projects.",
"preferGlobal": true,
"bin": {
Expand Down
4 changes: 2 additions & 2 deletions src/stubs/routeMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import RouteMiddlewareInterface from "varie/lib/routing/RouteMiddlewareInterface

@injectable()
export default class temp implements RouteMiddlewareInterface {
passes(to, from, next) {
handler(to, from, next) {
// your custom logic here
return true;
return next();
}
}

0 comments on commit bb670c4

Please sign in to comment.