@@ -437,24 +437,27 @@ pub fn router(state: AppState) -> Router {
437437 . route ( "/v2/notes/ingest" , routing:: post ( notes_ingest) )
438438 . route ( "/v2/events/ingest" , routing:: post ( events_ingest) )
439439 . route ( "/v2/searches" , routing:: post ( searches_create) )
440- . route ( "/v2/searches/: search_id" , routing:: get ( searches_get) )
441- . route ( "/v2/searches/: search_id/timeline" , routing:: get ( searches_timeline) )
442- . route ( "/v2/searches/: search_id/notes" , routing:: post ( searches_notes) )
440+ . route ( "/v2/searches/{ search_id} " , routing:: get ( searches_get) )
441+ . route ( "/v2/searches/{ search_id} /timeline" , routing:: get ( searches_timeline) )
442+ . route ( "/v2/searches/{ search_id} /notes" , routing:: post ( searches_notes) )
443443 . route ( "/v2/graph/query" , routing:: post ( graph_query) )
444444 . route ( "/v2/notes" , routing:: get ( notes_list) )
445445 . route (
446- "/v2/notes/: note_id" ,
446+ "/v2/notes/{ note_id} " ,
447447 routing:: get ( notes_get) . patch ( notes_patch) . delete ( notes_delete) ,
448448 )
449- . route ( "/v2/notes/:note_id/publish" , routing:: post ( notes_publish) )
450- . route ( "/v2/notes/:note_id/unpublish" , routing:: post ( notes_unpublish) )
451- . route ( "/v2/spaces/:space/grants" , routing:: get ( space_grants_list) . post ( space_grant_upsert) )
452- . route ( "/v2/spaces/:space/grants/revoke" , routing:: post ( space_grant_revoke) )
449+ . route ( "/v2/notes/{note_id}/publish" , routing:: post ( notes_publish) )
450+ . route ( "/v2/notes/{note_id}/unpublish" , routing:: post ( notes_unpublish) )
451+ . route (
452+ "/v2/spaces/{space}/grants" ,
453+ routing:: get ( space_grants_list) . post ( space_grant_upsert) ,
454+ )
455+ . route ( "/v2/spaces/{space}/grants/revoke" , routing:: post ( space_grant_revoke) )
453456 . with_state ( state. clone ( ) )
454457 . layer ( DefaultBodyLimit :: max ( MAX_REQUEST_BYTES ) ) ;
455458 let docs_router = Router :: new ( )
456459 . route ( "/v2/docs" , routing:: post ( docs_put) )
457- . route ( "/v2/docs/: doc_id" , routing:: get ( docs_get) )
460+ . route ( "/v2/docs/{ doc_id} " , routing:: get ( docs_get) )
458461 . route ( "/v2/docs/search/l0" , routing:: post ( docs_search_l0) )
459462 . route ( "/v2/docs/excerpts" , routing:: post ( docs_excerpts_get) )
460463 . with_state ( state)
@@ -477,11 +480,11 @@ pub fn admin_router(state: AppState) -> Router {
477480 . put ( admin_ingestion_profile_default_set) ,
478481 )
479482 . route (
480- "/v2/admin/events/ingestion-profiles/: profile_id/versions" ,
483+ "/v2/admin/events/ingestion-profiles/{ profile_id} /versions" ,
481484 routing:: get ( admin_ingestion_profile_versions_list) ,
482485 )
483486 . route (
484- "/v2/admin/events/ingestion-profiles/: profile_id" ,
487+ "/v2/admin/events/ingestion-profiles/{ profile_id} " ,
485488 routing:: get ( admin_ingestion_profile_get) ,
486489 )
487490 . route (
@@ -491,20 +494,20 @@ pub fn admin_router(state: AppState) -> Router {
491494 . route ( "/v2/admin/qdrant/rebuild" , routing:: post ( rebuild_qdrant) )
492495 . route ( "/v2/admin/searches/raw" , routing:: post ( searches_raw) )
493496 . route ( "/v2/admin/traces/recent" , routing:: get ( trace_recent_list) )
494- . route ( "/v2/admin/traces/: trace_id" , routing:: get ( trace_get) )
495- . route ( "/v2/admin/traces/: trace_id/bundle" , routing:: get ( trace_bundle_get) )
496- . route ( "/v2/admin/trajectories/: trace_id" , routing:: get ( trace_trajectory_get) )
497- . route ( "/v2/admin/trace-items/: item_id" , routing:: get ( trace_item_get) )
497+ . route ( "/v2/admin/traces/{ trace_id} " , routing:: get ( trace_get) )
498+ . route ( "/v2/admin/traces/{ trace_id} /bundle" , routing:: get ( trace_bundle_get) )
499+ . route ( "/v2/admin/trajectories/{ trace_id} " , routing:: get ( trace_trajectory_get) )
500+ . route ( "/v2/admin/trace-items/{ item_id} " , routing:: get ( trace_item_get) )
498501 . route ( "/v2/admin/graph/predicates" , routing:: get ( admin_graph_predicates_list) )
499502 . route (
500- "/v2/admin/graph/predicates/: predicate_id" ,
503+ "/v2/admin/graph/predicates/{ predicate_id} " ,
501504 routing:: patch ( admin_graph_predicate_patch) ,
502505 )
503506 . route (
504- "/v2/admin/graph/predicates/: predicate_id/aliases" ,
507+ "/v2/admin/graph/predicates/{ predicate_id} /aliases" ,
505508 routing:: post ( admin_graph_predicate_alias_add) . get ( admin_graph_predicate_aliases_list) ,
506509 )
507- . route ( "/v2/admin/notes/: note_id/provenance" , routing:: get ( admin_note_provenance_get) )
510+ . route ( "/v2/admin/notes/{ note_id} /provenance" , routing:: get ( admin_note_provenance_get) )
508511 . with_state ( state)
509512 . layer ( DefaultBodyLimit :: max ( MAX_REQUEST_BYTES ) )
510513 . layer ( middleware:: from_fn_with_state ( auth_state, admin_auth_middleware) )
0 commit comments