test for deployment
This commit is contained in:
@@ -140,7 +140,7 @@ export default function Calendar({
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
axios
|
axios
|
||||||
.delete(
|
.delete(
|
||||||
`/api/posts`,
|
`https://klayrion.netlify.app/api/posts`,
|
||||||
{
|
{
|
||||||
params: {
|
params: {
|
||||||
id: sessionId,
|
id: sessionId,
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export default function CalendarApp() {
|
|||||||
const [events, setEvents] = useState<CalendarSchedule[]>([]);
|
const [events, setEvents] = useState<CalendarSchedule[]>([]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
axios.get(`/api/posts/?id=${sessionId}`).then((response) => {
|
axios.get(`https://klayrion.netlify.app/api/posts/?id=${sessionId}`).then((response) => {
|
||||||
const v = response.data.schedules.map((e: any) => ({
|
const v = response.data.schedules.map((e: any) => ({
|
||||||
date: parse(e.scheduled, 'yyyy-MM-dd HH:mm', new Date()),
|
date: parse(e.scheduled, 'yyyy-MM-dd HH:mm', new Date()),
|
||||||
platforms: e.platforms,
|
platforms: e.platforms,
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ export default function PostDialog({
|
|||||||
<Button
|
<Button
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
axios.post('/api/posts', {
|
axios.post('https://klayrion.netlify.app/api/posts', {
|
||||||
sessionId,
|
sessionId,
|
||||||
platforms: ['andjksds'],
|
platforms: ['andjksds'],
|
||||||
content,
|
content,
|
||||||
@@ -139,7 +139,7 @@ export default function PostDialog({
|
|||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
const { data } = await axios.put('/api/posts', {
|
const { data } = await axios.put('https://klayrion.netlify.app/api/posts', {
|
||||||
scheduled: format(date, 'y-MM-dd hh:mm'),
|
scheduled: format(date, 'y-MM-dd hh:mm'),
|
||||||
sessionId,
|
sessionId,
|
||||||
platforms: ['andjksds'],
|
platforms: ['andjksds'],
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ export default function Login() {
|
|||||||
const handleLogin = async () => {
|
const handleLogin = async () => {
|
||||||
try {
|
try {
|
||||||
const { sessionId } = (
|
const { sessionId } = (
|
||||||
await axios.post('/api/session/', {
|
await axios.post('https://klayrion.netlify.app/api/session/', {
|
||||||
email,
|
email,
|
||||||
password,
|
password,
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ export default function SignUp() {
|
|||||||
console.log('Password:', password);
|
console.log('Password:', password);
|
||||||
|
|
||||||
axios
|
axios
|
||||||
.post('/api/account/', {
|
.post('https://klayrion.netlify.app/api/account/', {
|
||||||
name,
|
name,
|
||||||
email,
|
email,
|
||||||
password,
|
password,
|
||||||
|
|||||||
Reference in New Issue
Block a user