#!/usr/bin/lua

local handlers = require("voucher.cgi_handlers")

local redirect_url = handlers.activate_voucher()

io.stdout:write("Status: 302 \r\n")
io.stdout:write("Location: " .. redirect_url .. "\r\n")
io.stdout:write("\r\n") --! indicate uhttpd to send the response
