@@ -128,6 +128,7 @@ pub async fn login_handler(
128128 }
129129}
130130
131+ /// GET /projects - List all projects with optional filters
131132pub 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
156158pub 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
173176pub 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)
187191pub async fn create_project_handler (
188192 State ( state) : State < AppState > ,
189193 Extension ( VerifiedWallet ( verified_wallet) ) : Extension < VerifiedWallet > ,
0 commit comments