tsk-50: Create Special endpoint for services to obtain a token #53

Merged
phoenix merged 19 commits from tsk-50 into devel 2025-08-03 23:09:51 +00:00
2 changed files with 2 additions and 0 deletions
Showing only changes of commit 7f02213282 - Show all commits

View File

@@ -7,4 +7,5 @@ pub mod endpoints {
pub const REGISTER: &str = "/api/v2/register";
pub const DBTEST: &str = "/api/v2/test/db";
pub const LOGIN: &str = "/api/v2/login";
pub const SERVICE_LOGIN: &str = "/api/v2/service/login";
}

View File

@@ -41,6 +41,7 @@ mod init {
callers::endpoints::LOGIN,
post(callers::login::endpoint::login),
)
.route(callers::endpoints::SERVICE_LOGIN, post(callers::login::endpoint::service_login))
}
pub async fn app() -> Router {