
Story: 2008529 Task: 41688 Signed-off-by: Bin Yang <bin.yang@windriver.com> Change-Id: Ib276520605cc624a9976f804a1721ba2c5909403
21 lines
395 B
Python
21 lines
395 B
Python
#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())
|