Named routes & basic login framework
This commit is contained in:
@@ -61,6 +61,9 @@ export abstract class ViewEngine extends AppClass {
|
||||
config: (key: string, fallback?: any) => this.config.get(key, fallback),
|
||||
asset: (...parts: string[]) => this.routing.getAssetPath(...parts).toRemote,
|
||||
vendor: (namespace: string, ...parts: string[]) => this.routing.getVendorPath(namespace, ...parts).toRemote,
|
||||
named: (name: string) => this.routing.getNamedPath(name).toRemote,
|
||||
route: (...parts: string[]) => this.routing.getAppUrl().concat(...parts).toRemote,
|
||||
hasRoute: (name: string) => this.routing.hasNamedRoute(name),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user