#coding=utf-8 from pecan import expose, redirect, rest, route, response from webob.exc import status_map from wsme import types as wtypes from wsmeext.pecan import wsexpose class HealthController(rest.RestController): @wsexpose(wtypes.text) def get(self): return {'health': True} class RootController(object): pass route(RootController, 'health', HealthController())