Skip to content

Commit d2147b2

Browse files
committed
.
1 parent 48d3950 commit d2147b2

File tree

18 files changed

+207
-2159
lines changed

18 files changed

+207
-2159
lines changed

app.rb

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
require_relative 'app/feeds'
1313
require_relative 'app/health_check'
1414
require_relative 'app/response_context'
15-
require_relative 'app/request_context'
16-
require_relative 'app/base_route_handler'
1715
require_relative 'app/xml_builder'
1816
require_relative 'app/security_logger'
1917

@@ -29,30 +27,24 @@ class App < Roda
2927
def self.development? = ENV['RACK_ENV'] == 'development'
3028
def development? = self.class.development?
3129

32-
# Validate environment on class load
3330
EnvironmentValidator.validate_environment!
3431
EnvironmentValidator.validate_production_security!
3532

36-
# Configure Roda app
3733
RodaConfig.configure(self)
3834

39-
# Load hash_branches plugin for Large Applications
4035
plugin :hash_branches
4136

42-
# Load all route files
4337
Dir['routes/*.rb'].each { |f| require_relative f }
4438

4539
@show_backtrace = development? && !ENV['CI']
4640

47-
# Load all routes
4841
AppRoutes.load_routes(self)
4942

5043
route do |r|
5144
r.public
5245
r.hash_branches('')
5346

5447
r.root do
55-
# Handle root path
5648
index_path = 'public/frontend/index.html'
5749
response['Content-Type'] = 'text/html'
5850

@@ -70,7 +62,12 @@ def fallback_html
7062
<html>
7163
<head>
7264
<title>html2rss-web</title>
73-
<link rel="stylesheet" href="/water.css">
65+
<meta name="viewport" content="width=device-width,initial-scale=1">
66+
<style>
67+
body { font-family: system-ui, sans-serif; max-width: 800px; margin: 0 auto; padding: 2rem; line-height: 1.6; }
68+
h1 { color: #111827; }
69+
code { background: #f3f4f6; padding: 0.2rem 0.4rem; border-radius: 0.25rem; }
70+
</style>
7471
</head>
7572
<body>
7673
<h1>html2rss-web</h1>

app/base_route_handler.rb

Lines changed: 0 additions & 180 deletions
This file was deleted.

0 commit comments

Comments
 (0)