public DeleteModule(Interfaces.IImageRepository imageRepository) : base("api/images/delete") { if (imageRepository == null) throw new ArgumentNullException("imageRepository"); _imageRepository = imageRepository; Post["", true] = DeleteImage; }
public UploadModule(Interfaces.IImageRepository imageRepository) : base("api/images/upload/") { if (imageRepository == null) { throw new ArgumentNullException("imageRepository"); } _imageRepository = imageRepository; Get["url", true] = GetImageUploadUrl; Post["complete", true] = ImageUploadComplete; }