MCPcopy Create free account
hub / github.com/WebODM/WebODM / save_api_key

Method save_api_key

coreplugins/lightning/plugin.py:69–77  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

67 @login_required
68 @require_POST
69 def save_api_key(request):
70 api_key = request.POST.get('api_key')
71 if api_key is None:
72 return JsonResponse({'error': 'api_key is required'})
73
74 uds = UserDataStore('lightning', request.user)
75 uds.set_string('api_key', api_key)
76
77 return JsonResponse({'success': True})
78
79 @login_required
80 @require_POST

Callers

nothing calls this directly

Calls 4

UserDataStoreClass · 0.90
set_stringMethod · 0.80
JsonResponseFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected