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 Oct 6, 2018
1 parent bb670c4 commit c5ff294
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stubs/routeMiddleware.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Route, Location } from "vue-router";
import { injectable, inject } from "inversify";
import RouteMiddlewareInterface from "varie/lib/routing/RouteMiddlewareInterface";

@injectable()
export default class temp implements RouteMiddlewareInterface {
handler(to, from, next) {
// your custom logic here
return next();
handler(to: Route, from: Route, next: (route?: Location) => void) {
next();
}
}

0 comments on commit c5ff294

Please sign in to comment.