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

13 lines
293 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
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);
}
}