handlers.py 404 B

1234567891011121314151617181920
  1. """
  2. Settings handlers
  3. """
  4. import json
  5. import boto3
  6. from boto_utils import get_config, DecimalEncoder
  7. from decorators import with_logging, catch_errors, add_cors_headers
  8. @with_logging
  9. @add_cors_headers
  10. @catch_errors
  11. def list_settings_handler(event, context):
  12. config = get_config()
  13. return {
  14. "statusCode": 200,
  15. "body": json.dumps({"Settings": config}, cls=DecimalEncoder),
  16. }