Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit 2a357156 authored by 65160206's avatar 65160206
Browse files

post python backend

parent 8246461a
Branches
No related tags found
No related merge requests found
Pipeline #662 canceled
# .env.docker (ใช้ตอนรันใน Docker หรือ production) # .env.docker (ใช้ตอนรันใน Docker หรือ production)
VITE_EMP_IMAGE_BASE=http://dekdee3.informatics.buu.ac.th:8012/images/emp/ VITE_EMP_IMAGE_BASE=http://dekdee3.informatics.buu.ac.th:8012/images/emp/
VITE_SCHEDULER_API=http://dekdee3.informatics.buu.ac.th:801
\ No newline at end of file
...@@ -47,7 +47,7 @@ export async function runScheduleDirect(payload: { ...@@ -47,7 +47,7 @@ export async function runScheduleDirect(payload: {
startDate: string startDate: string
pageID: number pageID: number
}) { }) {
const { data } = await axios.post('http://localhost:9000/run-schedule', payload, { const { data } = await axios.post('import.meta.env.VITE_SCHEDULER_API', payload, {
headers: { headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment