consul/ui/packages/consul-ui/app/routes/dc/services/notfound.js

13 lines
294 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
import Route from 'consul-ui/routing/route';
export default class NotfoundRoute extends Route {
redirect(model, transition) {
this.replaceWith('dc.services.instance', model.name, model.node, model.id);
}
}