Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PhotoDAO

Hierarchy

Index

Constructors

constructor

Accessors

http

Methods

get

Protected handleErrors

post

  • post(fileName: string, photoData: Buffer): Promise<PhotoDetails>

profile

  • profile(username: string, fileName: string, photoData: Buffer): Promise<PhotoDetails>

put

  • put(id: string, newFileName: string): Promise<PhotoDetails>
  • Update the "original filename" metadata on a photo.

    Parameters

    • id: string
    • newFileName: string

    Returns Promise<PhotoDetails>

remove

removeProfile

  • removeProfile(): Promise<any>

Generated using TypeDoc