aboutsummaryrefslogtreecommitdiff
path: root/example/basic/reluax.luax
blob: bba3e1a11edb5222b566a3a7d3eb50b4853d00e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
local route = function(path)
  if path == '/' then
    return 200,
      <html>
        <head>
          <title>basic-example</title>
        </head>
        <body>
          <h1>This is the simplest example of a Reluax application.</h1>
        </body>
      </html>
  end

  return 404, 'Not Found'
end

return {
  name = 'basic-example',
  route = route
}