summaryrefslogtreecommitdiffstats
path: root/web/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'web/api.py')
-rw-r--r--web/api.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/api.py b/web/api.py
index 5f21441..70c0aff 100644
--- a/web/api.py
+++ b/web/api.py
@@ -39,12 +39,18 @@ class KillHandler(APIHandler):
kill = db.queries.kill(kill_id)
self.respond_json(kill)
+class TopCostHandler(APIHandler):
+ def get(self):
+ kills = db.queries.top_cost()
+ self.respond_json(kills)
+
def start():
tornado.web.Application(
handlers=[
(r'/search', SearchHandler),
(r'/(alliance|corporation|character)/(.+)', KillListHandler),
(r'/kill/(.+)', KillHandler),
+ (r'/top/cost', TopCostHandler),
],
debug=config.debug,
).listen(config.api_port)