mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 18:15:39 +00:00
migrated auth, account and meta to use const routes
This commit is contained in:
@@ -29,10 +29,9 @@ pub mod routes {
|
||||
pub update: &'static str,
|
||||
pub get: &'static str,
|
||||
}
|
||||
|
||||
impl Default for Duration {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
impl Duration {
|
||||
pub const fn new() -> Duration {
|
||||
Duration {
|
||||
update: "/api/v1/mcaptcha/domain/token/duration/update",
|
||||
get: "/api/v1/mcaptcha/domain/token/duration/get",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user