aboutsummaryrefslogtreecommitdiff
path: root/src/api/admin/router.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/admin/router.rs')
-rw-r--r--src/api/admin/router.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/api/admin/router.rs b/src/api/admin/router.rs
index 41e7ed73..93639873 100644
--- a/src/api/admin/router.rs
+++ b/src/api/admin/router.rs
@@ -27,6 +27,7 @@ pub enum Endpoint {
// Keys
ListKeys,
CreateKey,
+ ImportKey,
GetKeyInfo {
id: Option<String>,
search: Option<String>,
@@ -103,6 +104,7 @@ impl Endpoint {
GET "/v0/key" if search => GetKeyInfo (query_opt::id, query_opt::search),
POST "/v0/key" if id => UpdateKey (query::id),
POST "/v0/key" => CreateKey,
+ POST "/v0/key/import" => ImportKey,
DELETE "/v0/key" if id => DeleteKey (query::id),
GET "/v0/key" => ListKeys,
// Bucket endpoints