Skip to content

Commit 8419cdf

Browse files
committed
fix ssg
1 parent fb89440 commit 8419cdf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,14 @@ impl Route {
201201
}
202202
}
203203

204+
// todo - when we update to 0.6.0 we need to change this to return a Vec<String>
204205
#[server(endpoint = "static_routes")]
205-
async fn static_routes() -> Result<Vec<String>, ServerFnError> {
206+
async fn static_routes() -> Result<String, ServerFnError> {
206207
Ok(Route::static_routes()
207208
.into_iter()
208209
.map(|route| route.to_string())
209-
.collect::<Vec<_>>())
210+
.collect::<Vec<_>>()
211+
.join("\n"))
210212
}
211213

212214
fn static_dir() -> std::path::PathBuf {

0 commit comments

Comments
 (0)