remove hardcoded user id from home
This commit is contained in:
parent
cb697daa03
commit
8c52294b10
1 changed files with 1 additions and 1 deletions
|
|
@ -67,8 +67,8 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||||
const response = await fetch('/api/plans', {
|
const response = await fetch('/api/plans', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
|
credentials: 'same-origin',
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
userId: 0,
|
|
||||||
textId: textId,
|
textId: textId,
|
||||||
name: planName,
|
name: planName,
|
||||||
dateStart: dateStart,
|
dateStart: dateStart,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue