Mercurial Hosting > linkmystyle
annotate 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 |
| rev | line source |
|---|---|
| 0 | 1 local Http = require "luan:http/Http.luan" |
| 2 local Hosted = require "luan:host/Hosted.luan" | |
| 3 local Logging = require "luan:logging/Logging.luan" | |
| 4 local logger = Logging.logger "init" | |
| 5 | |
| 6 | |
| 7 Hosted.set_https and Hosted.set_https(Http.domain~=nil) | |
| 8 | |
| 9 function Http.not_found_handler() | |
| 10 Http.response.send_redirect("https://unsubscribe.linkmy.style"..Http.request.raw_path) | |
| 11 return true | |
| 12 end | |
| 13 | |
| 14 return true |
