redirect /rip for old nitter instance redirects

This commit is contained in:
4cuck committed 2025-02-16 21:11:14 +01:00
1 parent 3201045122
commit 289b36f972
1 file changed
+2 -1
+2 -1
View File
@@ -158,7 +158,8 @@ pub async fn start(
.layer(session_service) .layer(session_service)
) )
.route("/about", get(website::about)) .route("/about", get(website::about))
// .route("/rip", get(website::rip)) // keep redirect for old nitter instances redirecting to it
.route("/rip", get(|| async { Redirect::temporary("/") }))
.route( .route(
"/robots.txt", "/robots.txt",
get_service(ServeFile::new("server/static/robots.txt")), get_service(ServeFile::new("server/static/robots.txt")),