Skip to main content

max / makenotwork

server: hotfix 0.9.1 — remove duplicate /robots.txt route The inline handler in lib.rs:166 collided with the canonical sitemap::robots_txt registered via public::routes(). 0.9.0 panicked on boot with "Overlapping method route. Handler for `GET /robots.txt` already exists" — caught immediately on launch deploy. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Author: Max Johnson <me@maxj.phd> · 2026-06-01 18:28 UTC
Commit: f6edda7641dcd007e78c208420afc7198eb8642e
Parent: bfbf0b6
3 files changed, +2 insertions, -8 deletions
@@ -4140,7 +4140,7 @@ dependencies = [
4140 4140
4141 4141 [[package]]
4142 4142 name = "makenotwork"
4143 - version = "0.9.0"
4143 + version = "0.9.1"
4144 4144 dependencies = [
4145 4145 "anyhow",
4146 4146 "apple-codesign",
@@ -1,6 +1,6 @@
1 1 [package]
2 2 name = "makenotwork"
3 - version = "0.9.0"
3 + version = "0.9.1"
4 4 edition = "2024"
5 5 license-file = "LICENSE"
6 6
@@ -163,12 +163,6 @@ pub fn build_app(
163 163 .merge(git_routes())
164 164 .merge(routes::embed::embed_routes())
165 165 .route("/api/openapi.json", axum::routing::get(openapi::openapi_json))
166 - .route("/robots.txt", axum::routing::get(|| async {
167 - axum::response::Response::builder()
168 - .header("content-type", "text/plain")
169 - .body(axum::body::Body::from("User-agent: *\nDisallow: /api/\nDisallow: /admin/\nDisallow: /settings/\n"))
170 - .expect("static robots.txt response builds")
171 - }))
172 166 .nest_service(
173 167 "/static",
174 168 tower::ServiceBuilder::new()