Users can register, log in, and manage profile/password in a personal account page; server data is scoped by owner across contacts, maps, tags, and import. Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
528 B
Python
19 lines
528 B
Python
from rest_framework.response import Response
|
|
from rest_framework.views import APIView
|
|
|
|
from core.drf_mixins import JwtAuthMixin
|
|
from plugins.base import get_enabled_plugins
|
|
|
|
|
|
class PluginManifestView(JwtAuthMixin, APIView):
|
|
def get(self, request):
|
|
return Response([
|
|
{
|
|
'id': p.id,
|
|
'version': p.version,
|
|
'min_core_version': p.min_core_version,
|
|
'permissions': p.permissions,
|
|
}
|
|
for p in get_enabled_plugins()
|
|
])
|