Skip to content

Commit 1a72b8b

Browse files
pheobeayojoelamouche
authored andcommitted
fix merge conflicts
1 parent 4072dc2 commit 1a72b8b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

backend/src/presentation/handlers.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ pub async fn login_handler(
128128
}
129129
}
130130

131+
/// GET /projects - List all projects with optional filters
131132
pub async fn list_projects_handler(
132133
State(state): State<AppState>,
133134
Query(params): Query<ListProjectsQuery>,
@@ -153,6 +154,7 @@ pub async fn list_projects_handler(
153154
}
154155
}
155156

157+
// GET /projects/:id - Get a single project by ID
156158
pub async fn get_project_handler(
157159
State(state): State<AppState>,
158160
Path(id): Path<String>,
@@ -170,6 +172,7 @@ pub async fn get_project_handler(
170172
}
171173
}
172174

175+
/// GET /users/:address/projects - Get all projects by a creator
173176
pub async fn get_user_projects_handler(
174177
State(state): State<AppState>,
175178
Path(address): Path<String>,
@@ -184,6 +187,7 @@ pub async fn get_user_projects_handler(
184187
}
185188
}
186189

190+
/// POST /projects - Create a new project (Protected)
187191
pub async fn create_project_handler(
188192
State(state): State<AppState>,
189193
Extension(VerifiedWallet(verified_wallet)): Extension<VerifiedWallet>,

0 commit comments

Comments
 (0)