Files
labelprint/views/brother_picker.erb
randy 5c06f725f0
deploy / deploy (push) Successful in 9s
Address Brother QL printer by URL path instead of session cookie
Drops /brother/select and the session-based "active printer" state:
the printer key now lives in the path (/brother/<printer>/*), so the
proxy is stateless and any path under it -- including brother_ql_web's
API, not just its UI -- is reachable without a prior "activation" step.
2026-09-12 23:18:08 +02:00

9 lines
320 B
ERB

<h1>Brother printers</h1>
<p>Choose a printer to open its label designer through this server.</p>
<div class="list-group" style="max-width: 400px;">
<% @printers.each do |key, info| %>
<a href="/brother/<%= key %>/" class="btn btn-outline-primary w-100 text-start mb-2"><%= info[:label] %></a>
<% end %>
</div>