feat: migrate v1 api mod to use actix_auth_middleware

This commit is contained in:
realaravinth
2022-05-07 12:29:37 +05:30
parent b057e48d72
commit a668fafa62
17 changed files with 65 additions and 19 deletions

View File

@@ -14,6 +14,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
use actix_auth_middleware::GetLoginRoute;
use super::account::routes::Account;
use super::auth::routes::Auth;
@@ -45,3 +46,9 @@ impl Routes {
}
}
}
impl GetLoginRoute for Routes {
fn get_login_route(&self, src: Option<&str>) -> String {
self.auth.get_login_route(src)
}
}