Add ASGI app wrapper
This commit is contained in:
parent
4b814022b7
commit
469939db8c
|
@ -52,3 +52,12 @@ def main(global_config, **settings):
|
||||||
under='pyramid_tm.tm_tween_factory')
|
under='pyramid_tm.tm_tween_factory')
|
||||||
|
|
||||||
return pyramid_config.make_wsgi_app()
|
return pyramid_config.make_wsgi_app()
|
||||||
|
|
||||||
|
|
||||||
|
def asgi_main():
|
||||||
|
"""
|
||||||
|
This function returns an ASGI application.
|
||||||
|
"""
|
||||||
|
from tailbone.asgi import make_asgi_app
|
||||||
|
|
||||||
|
return make_asgi_app(main)
|
||||||
|
|
Loading…
Reference in a new issue