mirror of
https://github.com/GSA/notifications-api.git
synced 2026-07-26 02:49:42 -04:00
Adding rest endpoints for letter-branding
This commit is contained in:
@@ -257,6 +257,15 @@ class LetterBranding(db.Model):
|
||||
domain = db.Column(db.Text, unique=True, nullable=True)
|
||||
platform_default = db.Column(db.Boolean, nullable=False, default=False)
|
||||
|
||||
def serialize(self):
|
||||
return {
|
||||
"id": self.id,
|
||||
"name": self.name,
|
||||
"filename": self.filename,
|
||||
"domain": self.domain,
|
||||
"platform_default": self.platform_default
|
||||
}
|
||||
|
||||
|
||||
service_letter_branding = db.Table(
|
||||
'service_letter_branding',
|
||||
|
||||
Reference in New Issue
Block a user