http: Remove any remaining authentication code
We also remove the /api/v1/profile endpoint because that was only
supposed to be used with a local node and not publicly accessible. All
fields that are still used in the UI were moved to /api/v1/node.
12 files changed
+48
-205
b105d06f
→
04d04191
modified config/default.json
@@ -1,7 +1,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified http-client/index.ts
@@ -42,7 +42,6 @@ import type { ZodSchema } from "zod";
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -93,6 +92,9 @@ const nodeSchema = object({
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -144,14 +146,12 @@ export class HttpdClient {
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
|
|
|
|
|
deleted http-client/lib/profile.ts
@@ -1,31 +0,0 @@
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
modified radicle-httpd/Cargo.lock
@@ -1614,9 +1614,9 @@ dependencies = [
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1708,7 +1708,7 @@ dependencies = [
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-httpd/Cargo.toml
@@ -3,7 +3,7 @@ name = "radicle-httpd"
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -46,7 +46,7 @@ ureq = { version = "2.9", default-features = false, features = ["json"] }
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-httpd/src/api.rs
@@ -1,7 +1,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -31,7 +31,7 @@ use crate::Options;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -106,14 +106,8 @@ pub fn router(ctx: Context) -> Router {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified radicle-httpd/src/api/error.rs
@@ -10,10 +10,6 @@ pub enum Error {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
@@ -107,7 +103,6 @@ impl IntoResponse for Error {
|
|
|
|
|
|
| - | |
|
|
|
|
|
modified radicle-httpd/src/api/v1.rs
@@ -1,6 +1,5 @@
|
|
|
|
| - | |
|
|
|
|
|
@@ -20,7 +19,6 @@ pub fn router(ctx: Context) -> Router {
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -53,11 +51,6 @@ async fn root_handler(State(ctx): State<Context>) -> impl IntoResponse {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
modified radicle-httpd/src/api/v1/node.rs
@@ -2,13 +2,14 @@ use axum::extract::State;
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -25,6 +26,21 @@ pub fn router(ctx: Context) -> Router {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -39,6 +55,9 @@ async fn node_handler(State(ctx): State<Context>) -> impl IntoResponse {
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -46,14 +65,18 @@ async fn node_handler(State(ctx): State<Context>) -> impl IntoResponse {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
deleted radicle-httpd/src/api/v1/profile.rs
@@ -1,123 +0,0 @@
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
modified radicle-httpd/src/test.rs
@@ -326,25 +326,17 @@ fn seed_with_signer<G: Signer>(dir: &Path, profile: radicle::Profile, signer: &G
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| - | |
|
|
|
|
|
modified tests/support/radicle-httpd-release
@@ -1 +1 @@
| - | |
|
|
| + | |
|