Add base code for REST API using Flask
This commit is contained in:
parent
0be947b3d1
commit
2da6e43797
12 changed files with 266 additions and 14 deletions
14
tofu_api/api/rest_api.py
Normal file
14
tofu_api/api/rest_api.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
from flask import Blueprint
|
||||
|
||||
from .tasks import TaskApiBlueprint
|
||||
|
||||
|
||||
class TofuApiBlueprint(Blueprint):
|
||||
"""
|
||||
Main blueprint for the Tofu REST API.
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
super().__init__('rest_api', __name__, url_prefix='/api')
|
||||
|
||||
self.register_blueprint(TaskApiBlueprint())
|
||||
Loading…
Add table
Add a link
Reference in a new issue