listener *:8080 {
    # For main TWFB benchmarks
    &plaintext /plaintext
    &json /json
    &db /db
    &queries /queries
    &cached_queries /cached-queries
    &fortunes /fortunes

    # For Lua version of TWFB benchmarks
    lua /lua. {
	default_type = text/plain
	cache period = 1h
        script='''local json = require "src/json"

                function handle_get_plaintext(req)
                    req:set_response("Hello, World!")
                end

                function handle_get_json(req)
                    req:set_headers({['Content-Type']='application/json'})
                    req:set_response(json.encode({message="Hello, World!"}))
                end'''
    }

    # For test harness
    &quit_lwan /quit-lwan
    &plaintext /hello
}
