2016-10-16 08:50:49 +01:00
|
|
|
# Run with: gunicorn --workers=1 --worker-class=meinheld.gmeinheld.MeinheldWorker -b :8000 simple_server:app
|
|
|
|
import bottle
|
2016-10-16 06:52:10 +01:00
|
|
|
import ujson
|
2023-10-25 00:21:29 +01:00
|
|
|
from bottle import route
|
2019-04-23 22:44:42 +01:00
|
|
|
|
2016-10-16 06:52:10 +01:00
|
|
|
|
2018-12-30 11:18:06 +00:00
|
|
|
@route("/")
|
2016-10-16 06:52:10 +01:00
|
|
|
def index():
|
2018-12-30 11:18:06 +00:00
|
|
|
return ujson.dumps({"test": True})
|
|
|
|
|
2016-10-16 06:52:10 +01:00
|
|
|
|
2016-10-16 08:50:49 +01:00
|
|
|
app = bottle.default_app()
|