mirror of
https://github.com/datahub-project/datahub.git
synced 2025-10-30 02:07:04 +00:00
16 lines
485 B
TypeScript
16 lines
485 B
TypeScript
|
|
import Route from '@ember/routing/route';
|
||
|
|
import Transition from '@ember/routing/-private/transition';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* The index route on Features is unused, but should transition to the browse entity route for features
|
||
|
|
* @export
|
||
|
|
* @class FeaturesIndex
|
||
|
|
* @extends {Route}
|
||
|
|
*/
|
||
|
|
export default class FeaturesIndex extends Route {
|
||
|
|
redirect(): Transition {
|
||
|
|
// default transition to browse route if user enters through index
|
||
|
|
return this.transitionTo('browse.entity', 'features');
|
||
|
|
}
|
||
|
|
}
|