Skip to content

Commit

Permalink
fix: api
Browse files Browse the repository at this point in the history
  • Loading branch information
DevNono committed Aug 19, 2023
1 parent 23850aa commit 21bdc15
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/controllers/admin/auth/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Router } from 'express';
import login from './login';
import loginAs from './loginAs';

const router = Router();

router.post('/login/:userId', login);
router.post('/login/:userId', loginAs);

export default router;
File renamed without changes.
2 changes: 1 addition & 1 deletion src/operations/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const uploadFile = async (file: any, path: string, name: string) => {
formData.append('path', path);
formData.append('name', name);

const result = await axios.post(`http://localhost:4444/test/api`, formData, {
const result = await axios.post(`${env.front.website}/uploads/files/api`, formData, {
headers: {
'Content-Type': 'multipart/form-data',
'Accept': 'application/json',
Expand Down

0 comments on commit 21bdc15

Please sign in to comment.