from pyramid.config import Configurator

def main(global_config, **settings):
    """ This function returns a Pyramid WSGI application.
    """
    config = Configurator(settings=settings)
    config.add_static_view('static', 'static', cache_max_age=3600)
    config.add_route('home', '/')
    config.add_route('deploy', '/spiscansurveyor.html')
    config.add_route('setup', '/setup.html')
    config.add_route('io', '/io.html')
    config.add_route('files', '/files.html')
    config.add_route('manual', '/spiscanmanual.html')
    config.scan()
    return config.make_wsgi_app()
