()
| 3253 | } |
| 3254 | |
| 3255 | fn project_routes() -> Router<Arc<ServerState>> { |
| 3256 | Router::new() |
| 3257 | .route("/", get(list_projects)) |
| 3258 | .route("/current", get(get_current_project)) |
| 3259 | .route("/{id}", patch(update_project)) |
| 3260 | } |
| 3261 | |
| 3262 | #[derive(Debug, Serialize)] |
| 3263 | pub struct ProjectInfo { |