Add `GET /api/v1/sessions/:id` route to get session information
modified radicle-httpd/src/api/auth.rs
@@ -11,6 +11,8 @@ impl Serialize for DateTime {
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified radicle-httpd/src/api/v1/sessions.rs
@@ -20,7 +20,10 @@ pub const AUTHORIZED_SESSIONS_EXPIRATION: Duration = Duration::weeks(1);
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -53,6 +56,18 @@ async fn session_create_handler(State(ctx): State<Context>) -> impl IntoResponse
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -100,7 +115,7 @@ mod routes {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -131,5 +146,8 @@ mod routes {
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|