
Story: 2008529 Task: 41923 Signed-off-by: Bin Yang <bin.yang@windriver.com> Change-Id: Icd665ffff700f1d915233ee3630ffd8ec5c5d923
26 lines
485 B
Python
26 lines
485 B
Python
#coding=utf-8
|
|
#
|
|
# Copyright (c) 2021 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
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())
|