Skip to content

Commit

Permalink
fastn_router::Route::NotFound includes 404 document info
Browse files Browse the repository at this point in the history
  • Loading branch information
amitu committed Dec 20, 2024
1 parent 57654b6 commit b876594
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion v0.5/fastn-router/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ pub enum Method {
#[derive(Debug)]
// the router will depend on fastn-section.
pub enum Route {
NotFound,
/// not found tells you which ftd document to serve as not found page
NotFound(Document),
// String contains the path, the data may contain more than that was passed to route, e.g., it
// can extract some extra path-specific data from FASTN.ftd file
Document(Document),
Expand Down

0 comments on commit b876594

Please sign in to comment.