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

Update server.js

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