Skip to content

Commit 52942ee

Browse files
committed
Admin API to edit registration tokens
1 parent c8f2a21 commit 52942ee

File tree

8 files changed

+850
-0
lines changed

8 files changed

+850
-0
lines changed

crates/handlers/src/admin/v1/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ where
136136
get_with(
137137
self::user_registration_tokens::get,
138138
self::user_registration_tokens::get_doc,
139+
)
140+
.put_with(
141+
self::user_registration_tokens::update,
142+
self::user_registration_tokens::update_doc,
139143
),
140144
)
141145
.api_route(

crates/handlers/src/admin/v1/user_registration_tokens/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ mod get;
88
mod list;
99
mod revoke;
1010
mod unrevoke;
11+
mod update;
1112

1213
pub use self::{
1314
add::{doc as add_doc, handler as add},
1415
get::{doc as get_doc, handler as get},
1516
list::{doc as list_doc, handler as list},
1617
revoke::{doc as revoke_doc, handler as revoke},
1718
unrevoke::{doc as unrevoke_doc, handler as unrevoke},
19+
update::{doc as update_doc, handler as update},
1820
};

0 commit comments

Comments
 (0)