Implement feature for deleting posts and improving ajax requests
This commit is contained in:
@@ -46,7 +46,7 @@ function sendEdit() {
|
||||
editor.start();
|
||||
|
||||
$.ajax({
|
||||
url: 'http://192.168.178.39/admin/projects/sendEdit',
|
||||
url: '/admin/projects/sendEdit',
|
||||
data: data,
|
||||
method: 'POST',
|
||||
success: data => {
|
||||
@@ -128,7 +128,7 @@ $('.upload-btn').on('change', '.upload-image', function () {
|
||||
$('.uploaded-image-container').css('background-image', `url(${reader.result}`);
|
||||
|
||||
$.ajax({
|
||||
url: 'http://192.168.178.39/admin/files/uploadImage',
|
||||
url: '/admin/files/uploadImage',
|
||||
type: 'POST',
|
||||
data: {
|
||||
image: reader.result,
|
||||
|
Reference in New Issue
Block a user