migrated auth, account and meta to use const routes

This commit is contained in:
realaravinth
2021-05-02 16:11:01 +05:30
parent 4f27e1ab8d
commit 76ae2b03e9
19 changed files with 626 additions and 70 deletions

View File

@@ -33,9 +33,9 @@ pub mod routes {
pub update_key: &'static str,
}
impl Default for MCaptcha {
fn default() -> Self {
Self {
impl MCaptcha {
pub const fn new() -> MCaptcha {
MCaptcha {
add: "/api/v1/mcaptcha/add",
update_key: "/api/v1/mcaptcha/update/key",
get_token: "/api/v1/mcaptcha/get",