small changes
This commit is contained in:
@@ -188,7 +188,7 @@ function CalendarApp() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
axios.delete(
|
axios.delete(
|
||||||
`http://localhost:3000/api/posts`,
|
`/api/posts`,
|
||||||
{
|
{
|
||||||
params: {
|
params: {
|
||||||
id: sessionId,
|
id: sessionId,
|
||||||
|
|||||||
@@ -123,9 +123,9 @@ export default function PostDialog({
|
|||||||
Cancel
|
Cancel
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
variant="destructive"
|
variant="secondary"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
axios.post('http://localhost:3000/api/posts', {
|
axios.post('/api/posts', {
|
||||||
sessionId,
|
sessionId,
|
||||||
platforms: ['andjksds'],
|
platforms: ['andjksds'],
|
||||||
content,
|
content,
|
||||||
@@ -148,7 +148,7 @@ export default function PostDialog({
|
|||||||
end: format(end, 'y-MM-dd hh:mm'),
|
end: format(end, 'y-MM-dd hh:mm'),
|
||||||
});
|
});
|
||||||
|
|
||||||
axios.put('http://localhost:3000/api/posts', {
|
axios.put('/api/posts', {
|
||||||
scheduled: format(date, 'y-MM-dd hh:mm'),
|
scheduled: format(date, 'y-MM-dd hh:mm'),
|
||||||
sessionId,
|
sessionId,
|
||||||
platforms: ['andjksds'],
|
platforms: ['andjksds'],
|
||||||
|
|||||||
Reference in New Issue
Block a user