0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:18:42 -05:00

Renamed theme upload file field name

no issue

- consistent with /images/upload/ endpoint
This commit is contained in:
kirrg001 2019-02-25 13:26:03 +01:00
parent 3278e8df22
commit a1023f0b11
2 changed files with 2 additions and 2 deletions

View file

@ -129,7 +129,7 @@ module.exports = function apiRoutes() {
router.post('/themes/upload',
mw.authAdminApi,
upload.single('theme'),
upload.single('file'),
shared.middlewares.validation.upload({type: 'themes'}),
http(apiv2.themes.upload)
);

View file

@ -14,7 +14,7 @@ describe('Themes API', function () {
const uploadTheme = (options) => {
const themePath = options.themePath;
const fieldName = options.fieldName || 'theme';
const fieldName = 'file';
const request = options.request || ownerRequest;
return request