Mercurial Hosting > linkmystyle
view redir/src/init.luan @ 4:f455bb813e2e default tip
remove facebook ads
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Thu, 06 Nov 2025 07:41:24 -0700 |
| 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://linkmy.style"..Http.request.raw_path) return true end return true
