Skip to content

Commit

Permalink
chore: added urls to old serv
Browse files Browse the repository at this point in the history
  • Loading branch information
Troff8 committed Sep 23, 2023
1 parent c434897 commit 5264bcf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
9 changes: 0 additions & 9 deletions .env
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@


# This was inserted by `prisma init`:
# Environment variables declared in this file are automatically made available to Prisma.
# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema

# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings

# DATABASE_URL="postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ yarn-error.log*
*.tsbuildinfo
next-env.d.ts
.task
.env
6 changes: 3 additions & 3 deletions src/app/api/apiDcp.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// import axios from 'axios'
const getListAPI = async (direction) => {
try {
const response = await axios.get('https://server.cdpolyclinic.ru/api/doctor/getFullList')
const response = await axios.get(process.env.GET_LIST_API)
if (response.status === 200) {
if (response.data.length >= 0) {
const listDoctorsDirection = []
Expand All @@ -26,7 +26,7 @@ const sendRequestCallAPI = async (name, phoneNumber, date) => {
telephone: phoneNumber,
date
},
url: 'https://server.cdpolyclinic.ru/api/request/setRequest'
url: process.env.SET_REQUEST_CALL
}
await axios(options).then((res) => {
return res.data
Expand All @@ -44,7 +44,7 @@ const sendMessageAPI = async (name, phoneNumber, email, message, date) => {
telephone: phoneNumber,
date
},
url: 'https://server.cdpolyclinic.ru/api/message/setMessage'
url: process.env.SET_MESSAGE_API
}
await axios(options).then((res) => {
return res.data
Expand Down

0 comments on commit 5264bcf

Please sign in to comment.