import { IRouter } from "./Router" ; import { Picture } from "../Database" ; import { Response } from "express" ; export class GetPicturesRouter implements IRouter { public AddRoute ( route ) { route . get ( '/get/' , ( request , response ) => { Picture . distinct ( "_id" , ( err , picture ) => { if ( err ) { response . send ( err ) ; } response . send ( picture ) ; } ) ; } ) ; } }