mirror of
https://github.com/System-End/shipment-viewer.git
synced 2026-04-19 19:45:07 +00:00
14 lines
No EOL
380 B
Ruby
14 lines
No EOL
380 B
Ruby
require_relative 'main'
|
|
|
|
STATIC_ROUTES = {
|
|
'index.html' => '/',
|
|
'internal.html' => '/internal',
|
|
'set_internal_key.html' => '/set_internal_key',
|
|
'404.html' => '/wp-admin/index.php'
|
|
}
|
|
|
|
STATIC_ROUTES.each_pair do |file, route|
|
|
response = ShipmentViewer.call('REQUEST_METHOD' => 'GET', 'PATH_INFO' => route )
|
|
body = response[2].join
|
|
File.write("build/#{file}", body)
|
|
end |