moov-io/customers

configuration: logo per Namespace

adamdecaf opened this issue · 2 comments

@joshsadler was asking for each Namespace to support having an image that is manually uploaded. This would be shown in their dashboard view and possibly emails in the future.

To start we need two endpoints (both behind auth)

GET /configuration/logo
X-Organization: ...
PUT /configuration/logo
X-Organization: ...

These would be stored in our blob store (similar to Documents) under a folder like /configuration/logos/. This might need coordinated with documents.

I think storing the filenames as their namespace ID is the best option. Then we can do a simple lookup.

Eventually I think we could support a public route (for emails) like following, but not right now.

<img src="/api/organizations/.../configuration/image" />

We could cache these (say, in nginx for 1hour) too.

Adding for clarity that any organization logo within a tenant should be accessible by an authenticated user. Our use case is commonly to include a list of organizations to switch between.