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:
parent
3278e8df22
commit
a1023f0b11
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue