Mercurial Hosting > linkmystyle
view unsubscribe/redir/src/init.luan @ 3:b016e4b7c8da default tip
add read_me
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 12 Jul 2025 12:51:36 -0600 |
parents | 8f4df159f06b |
children |
line wrap: on
line source
local Http = require "luan:http/Http.luan" local Hosted = require "luan:host/Hosted.luan" local Logging = require "luan:logging/Logging.luan" local logger = Logging.logger "init" Hosted.set_https and Hosted.set_https(Http.domain~=nil) function Http.not_found_handler() Http.response.send_redirect("https://unsubscribe.linkmy.style"..Http.request.raw_path) return true end return true