예제 #1
0
    def get(self, *args, **kwargs):
        if not check_file_exists(options.healthcheck_file_path):
            gen_logger.warn('%s does not exists',
                    options.healthcheck_file_path)
            raise HTTPError(404)

        self.api_response('It works!')
예제 #2
0
 def head(self, *args, **kwargs):
     if not check_file_exists(options.healthcheck_file_path):
         gen_logger.warn('%s does not exists',
                 options.healthcheck_file_path)
         raise HTTPError(404)