fHDHR_ToonamiAftermath/fHDHR/http/rmg/devices_devicekey_prefs.py
deathbybandaid 8ae419d14c first push
2020-12-05 11:08:04 -05:00

19 lines
513 B
Python

from flask import Response
class RMG_Devices_DeviceKey_Prefs():
endpoints = ["/devices/<devicekey>/prefs", "/rmg/devices/<devicekey>/prefs"]
endpoint_name = "rmg_devices_devicekey_prefs"
endpoint_methods = ["GET", "PUT"]
def __init__(self, fhdhr):
self.fhdhr = fhdhr
def __call__(self, devicekey, *args):
return self.get(devicekey, *args)
def get(self, devicekey, *args):
"""Prefs sent back from Plex in Key-Pair format"""
return Response(status=200)