diff --git a/r2/r2/controllers/health.py b/r2/r2/controllers/health.py index f8c7f25d4..437892095 100644 --- a/r2/r2/controllers/health.py +++ b/r2/r2/controllers/health.py @@ -20,32 +20,25 @@ # Inc. All Rights Reserved. ############################################################################### -from threading import Thread -import os -import time import json -from pylons.controllers.util import abort -from pylons import c, g, response +from pylons import g, response -from reddit_base import MinimalController -from r2.lib.amqp import worker -from r2.lib.validator import * +from r2.controllers.reddit_base import MinimalController from r2.lib import promote class HealthController(MinimalController): - def post(self): - pass - def try_pagecache(self): pass def pre(self): pass + def post(self): + pass + def GET_health(self): - c.dontcache = True response.headers['Content-Type'] = 'text/plain' return json.dumps(g.versions, sort_keys=True, indent=4)