robin/maivi
a tiny cute lua web framework
git clone https://git.robinwobin.dev/robin/maivi
8d7131b
main
1maivi . hook ( "handle" , { path ="/" } , function ( ctx ) 2local useragent =ctx . request . headers [ "User-Agent" ] 3if string . match ( useragent , "^curl" ) then 4return ctx : redirect ( "/index.txt" , nil ) 5end 6end )