fediseer/overseer/apis/apiv1.py

19 lines
480 B
Python
Raw Normal View History

2023-06-20 17:47:56 +00:00
from flask import Blueprint
from flask_restx import Api
from importlib import import_module
from overseer.apis.v1 import api as v1
blueprint = Blueprint('apiv1', __name__, url_prefix='/api')
api = Api(blueprint,
version='1.0',
title=f'Lemmy Overseer',
description=f'The API documentation for the Lemmy Overseer',
contact_email="mail@dbzer0.com",
default="v1",
default_label="Latest Version",
ordered=True,
)
api.add_namespace(v1)