mirror of
https://github.com/System-End/shipment-viewer.git
synced 2026-04-19 19:45:07 +00:00
we don't have vercel.json anymore ;w;
This commit is contained in:
parent
bb2624338e
commit
5240eab142
1 changed files with 12 additions and 0 deletions
12
app/main.rb
12
app/main.rb
|
|
@ -115,4 +115,16 @@ class ShipmentViewer < Sinatra::Base
|
|||
error do
|
||||
bounce_to_index! "#{env['sinatra.error'].message} (request ID: #{request.env['HTTP_X_VERCEL_ID'] || "idk lol"})"
|
||||
end
|
||||
|
||||
get '/shipments' do
|
||||
email = params['email']
|
||||
signature = params['signature']
|
||||
|
||||
if email && signature
|
||||
redirect to("/dyn/shipments/#{email}?signature=#{signature}"), 301
|
||||
else
|
||||
bounce_to_index! "lol wut"
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue