initial import for Open Source 🎉
This commit is contained in:
parent
1898c361f3
commit
9c0dd3b722
2048 changed files with 218743 additions and 0 deletions
18
static/js/services/route-builder/route-builder.service.ts
Normal file
18
static/js/services/route-builder/route-builder.service.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* Constructs client-side routes.
|
||||
*/
|
||||
export abstract class RouteBuilder {
|
||||
|
||||
/**
|
||||
* Configure the redirect route.
|
||||
* @param options Configuration options.
|
||||
*/
|
||||
public abstract otherwise(options: any): void;
|
||||
|
||||
/**
|
||||
* Register a route.
|
||||
* @param path The URL of the route.
|
||||
* @param pagename The name of the page to associate with this route.
|
||||
*/
|
||||
public abstract route(path: string, pagename: string): RouteBuilder;
|
||||
}
|
Reference in a new issue