def expose(func):
    """
    A decorator function to let a method/function show via URL invokation,
    used to avoid method exposure.
    You have to decorate method you want it to receive request from http
    like following ::

        @expose
        def some_method(self):
            # some code...
    """
    func._exposed_ = True
    return func