2023-03-15 21:17:51 +08:00
|
|
|
import { action } from "@ember/object";
|
2019-10-24 00:39:32 +08:00
|
|
|
import Route from "@ember/routing/route";
|
2023-07-19 03:52:55 +08:00
|
|
|
import { inject as service } from "@ember/service";
|
2015-11-21 09:27:06 +08:00
|
|
|
|
2023-03-15 21:17:51 +08:00
|
|
|
export default class AdminApiKeysRoute extends Route {
|
2023-07-19 03:52:55 +08:00
|
|
|
@service router;
|
|
|
|
|
2023-03-15 21:17:51 +08:00
|
|
|
@action
|
|
|
|
show(apiKey) {
|
2023-07-19 03:52:55 +08:00
|
|
|
this.router.transitionTo("adminApiKeys.show", apiKey.id);
|
2023-03-15 21:17:51 +08:00
|
|
|
}
|
2019-11-05 22:10:23 +08:00
|
|
|
|
2023-03-15 21:17:51 +08:00
|
|
|
@action
|
|
|
|
new() {
|
2023-07-19 03:52:55 +08:00
|
|
|
this.router.transitionTo("adminApiKeys.new");
|
2023-03-15 21:17:51 +08:00
|
|
|
}
|
|
|
|
}
|