printRoomPosters(_:)
func printRoomPosters(_ req: Request) async throws -> View
POST /admin/eventfeedback/roomposters
The POST form in the request contents contains a list of all the room names for which to print signs. Returns an HTML page meant to be printed out onto letter-size paper (one sheet per room name), and taped up to the walls of various rooms on the ship.
The returned page uses special css for printing, but doesn’t contain a ‘Print’ button that opens the print dialog in the browser.
Each sheet contains a QR Code, and the URL encoded in that QR code has the form “https://twitarr.com/eventfeedback?room=Rolling+Stone+Lounge”, but with appropriate room names. The URL encoded in the QR Code is always twitarr.com no matter what the current hostname is.
-
Declaration
Swift
struct RoomPosterForm : Content -
Declaration
Swift
struct PageContext : Encodable
View on GitHub