Function
source
(
axum::extract::Path(path): axum::extract::Path<String>,
axum::extract::Query(line_col): axum::extract::Query<SourceQueryArgs>,
)
Source from the content-addressed store, hash-verified
| 120 | } |
| 121 | |
| 122 | async fn source( |
| 123 | axum::extract::Path(path): axum::extract::Path<String>, |
| 124 | axum::extract::Query(line_col): axum::extract::Query<SourceQueryArgs>, |
| 125 | ) -> axum::http::Response<String> { |
| 126 | respond_ok_or_500(crate::source::try_source( |
| 127 | &path, |
| 128 | line_col.line, |
| 129 | line_col.column, |
| 130 | )) |
| 131 | } |
| 132 | |
| 133 | pub struct State { |
| 134 | pub debug_events: Mutex<Vec<Arc<DebugEvent>>>, |