mirror of
https://github.com/discourse/discourse.git
synced 2024-12-26 01:43:47 +08:00
18 lines
370 B
JavaScript
18 lines
370 B
JavaScript
import { action } from "@ember/object";
|
|
import Route from "@ember/routing/route";
|
|
import { service } from "@ember/service";
|
|
|
|
export default class AdminApiKeysRoute extends Route {
|
|
@service router;
|
|
|
|
@action
|
|
show(apiKey) {
|
|
this.router.transitionTo("adminApiKeys.show", apiKey.id);
|
|
}
|
|
|
|
@action
|
|
new() {
|
|
this.router.transitionTo("adminApiKeys.new");
|
|
}
|
|
}
|