function GET(req) return 200, { message = "Hello World!", timestamp = os.time(), path = req.path } end function POST(req) local data, err = json.decode(req.body) if err then return 400, {error = "Invalid JSON"} end return 200, { success = true, received = data, path = req.path } end