<filename>app/nami_app.py
# -*- coding: utf-8 -*-
# Author: <EMAIL>

import logging

from tornado.web import url

from app.base import BaseApplication
from handler import (
    i_am_ok,
    example,
)

logger = logging.getLogger(__name__)


def policy(auth=False):
    return {"auth": auth}


app_routes = [
    url(r"/are_you_ok", i_am_ok.IamOK, name='', kwargs=policy(auth=False)),
]

app_routes.extend(example.urls)


class Application(BaseApplication):
    SERVICE_NAME = 'NAMI-APP'


Application.init_routes(app_routes)

<filename>app/nami_app.py
# -*- coding: utf-8 -*-
# Author: <EMAIL>

import logging

from tornado.web import url

from app.base import BaseApplication
from handler import (
    i_am_ok,
    example,
)

logger = logging.getLogger(__name__)


def policy(auth=False):
    return {"auth": auth}


app_routes = [
    url(r"/are_you_ok", i_am_ok.IamOK, name='', kwargs=policy(auth=False)),
]

app_routes.extend(example.urls)


class Application(BaseApplication):
    SERVICE_NAME = 'NAMI-APP'


Application.init_routes(app_routes)

# -*- coding: utf-8 -*- # Author: <EMAIL>