Rooni commited on
Commit
7a9695a
·
verified ·
1 Parent(s): 18960df

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +1 -1
server.js CHANGED
@@ -10,7 +10,7 @@ app.use(express.json());
10
  app.post('/chat', async (req, res) => {
11
  try {
12
 
13
- const response = await axios.post(targetUrl, .req.body, {
14
  headers: {
15
  'Content-Type': 'application/json',
16
  'Authorization': `Bearer ${apiToken}` // Добавляем токен аутентификации
 
10
  app.post('/chat', async (req, res) => {
11
  try {
12
 
13
+ const response = await axios.post(targetUrl, req.body, {
14
  headers: {
15
  'Content-Type': 'application/json',
16
  'Authorization': `Bearer ${apiToken}` // Добавляем токен аутентификации