16 lines
349 B
Python
16 lines
349 B
Python
from tofu_api.common.rest import BaseBlueprint
|
|
from .tasks import TaskBlueprint
|
|
|
|
|
|
class TofuApiBlueprint(BaseBlueprint):
|
|
"""
|
|
Main blueprint for the Tofu REST API.
|
|
"""
|
|
|
|
name = 'rest_api'
|
|
import_name = __name__
|
|
url_prefix = '/api'
|
|
|
|
def init_blueprint(self) -> None:
|
|
self.register_blueprint(TaskBlueprint(self.app))
|