local Common = require("common")
local Footer = require("components.footer")
local AnimatedBg = require("components.animated_bg")
local Home = require("pages.home")
local NotFound = require("not_found")
math.randomseed(os.time())
local wrap_component = function(component)
return
end
local visits = 0
local route = function(path, method, headers, body)
if method ~= 'GET' then
return 405, "Method not allowed"
end
if path == '/' then
visits = visits + 1
return 200, wrap_component()
end
return 404, NotFound()
end
return {
name = "rem.duckonaut.dev",
route = route
}