voice-clone / config /schemaprotocol.py
renator's picture
Updated
99122b8
raw
history blame contribute delete
289 Bytes
from drf_yasg.generators import OpenAPISchemaGenerator
class BothHttpAndHttpsSchemaGenerator(OpenAPISchemaGenerator):
def get_schema(self, request=None, public=False):
schema = super().get_schema(request, public)
schema.schemes = ["http", "https"]
return schema