fixes routing issue with uploads

This commit is contained in:
Dan Ribbens
2020-01-19 17:21:24 -05:00
parent c0930f28ed
commit df0d784944

View File

@@ -88,12 +88,12 @@ class Payload {
this.Upload = mongoose.model(this.config.upload.labels.singular, uploadSchema);
this.Upload.discriminator('image', imageSchema);
registerUploadRoutes(this.Upload, this.config, this.router);
registerCollectionRoutes({
model: this.Upload,
config: this.config.upload,
}, this.router);
registerUploadRoutes(this.Upload, this.config, this.router);
};
registerGlobals = (globals) => {