moved different api calls
This commit is contained in:
@@ -58,10 +58,10 @@ function makeFileTables($API, $dataFolder, $device_slugify)
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($API->checkPermissions('admin-devices-files', 'RW', true)) { ?>
|
||||
<form action="/api/v1/devices/files" method="post">
|
||||
<form action="/api/v1/autop/devices/files" method="post">
|
||||
<input type="hidden" name="filePath" value="">
|
||||
<input type="hidden" name="_method" value="DELETE">
|
||||
<a href="#" class="btn btn-danger btn-sm btn-rounded delete-btn" data-item-uuid="<?php echo $urlPath ?>" data-api-url="/api/v1/devices/files/" data-item-name="file_name"><i class="fas fa-trash-alt"></i></a>
|
||||
<a href="#" class="btn btn-danger btn-sm btn-rounded delete-btn" data-item-uuid="<?php echo $urlPath ?>" data-api-url="/api/v1/autop/devices/files/" data-item-name="file_name"><i class="fas fa-trash-alt"></i></a>
|
||||
</form>
|
||||
<?php } ?>
|
||||
</td>
|
||||
@@ -325,7 +325,7 @@ $pageNavbar->outPutNavbar();
|
||||
</table>
|
||||
</div>
|
||||
<?php if ($API->checkPermissions('admin-devices-files', 'RW', true)) { ?>
|
||||
<form action="/api/v1/devices/files" class="dropzone p-0" data-form-type="documents">
|
||||
<form action="/api/v1/autop/devices/files" class="dropzone p-0" data-form-type="documents">
|
||||
<input type="hidden" name="device_slugify" value="<?php echo $device_data['device_slugify'] ?>">
|
||||
<input type="hidden" name="filetype" value="documents">
|
||||
<div class="dz-message mt-1 mb-0" data-dz-message>
|
||||
@@ -356,7 +356,7 @@ $pageNavbar->outPutNavbar();
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<form action="/api/v1/devices/files" class="dropzone p-0" data-form-type="firmware">
|
||||
<form action="/api/v1/autop/devices/files" class="dropzone p-0" data-form-type="firmware">
|
||||
<input type="hidden" name="device_slugify" value="<?php echo $device_data['device_slugify'] ?>">
|
||||
<input type="hidden" name="filetype" value="firmware">
|
||||
<div class="dz-message mt-1 mb-0" data-dz-message>
|
||||
|
||||
Reference in New Issue
Block a user