Skip to content

Commit

Permalink
Fix ESLint: module exporting default function
Browse files Browse the repository at this point in the history
  • Loading branch information
n1klaus committed May 14, 2023
1 parent 93bb822 commit dc040d9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions backend/src/routes/auth.route.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import express from 'express';
import { AuthController } from '../controllers/auth.controller';
import { requireLogin } from '../middleware/requireLogin';
import { getAuthToken } from '../middleware/getAuthToken';
import { validate } from '../middleware/validate';
import requireLogin from '../middleware/requireLogin';
import getAuthToken from '../middleware/getAuthToken';
import validate from '../middleware/validate';
import {
registerUserModel,
loginUserModel,
Expand Down
4 changes: 2 additions & 2 deletions backend/src/routes/channel.route.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import express from 'express';
import ChannelController from '../controllers/channel.controller';
import UploadController from '../controllers/upload.controller';
import { getAuthToken } from '../middleware/getAuthToken';
import { requireLogin } from '../middleware/requireLogin';
import getAuthToken from '../middleware/getAuthToken';
import requireLogin from '../middleware/requireLogin';

const router = express.Router();

Expand Down
4 changes: 2 additions & 2 deletions backend/src/routes/comment.route.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import express from 'express';
import CommentController from '../controllers/comment.controller';
import { getAuthToken } from '../middleware/getAuthToken';
import { requireLogin } from '../middleware/requireLogin';
import getAuthToken from '../middleware/getAuthToken';
import requireLogin from '../middleware/requireLogin';

const router = express.Router();

Expand Down
8 changes: 4 additions & 4 deletions backend/src/routes/video.route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import express from 'express';
import VideoController from '../controllers/video.controller';
import DownloadController from '../controllers/download.controller';
import StreamController from '../controllers/stream.controller';
import { getAuthToken } from '../middleware/getAuthToken';
import { requireLogin } from '../middleware/requireLogin';
import getAuthToken from '../middleware/getAuthToken';
import requireLogin from '../middleware/requireLogin';

const router = express.Router();

Expand All @@ -14,8 +14,8 @@ router.get('/', VideoController.getRandom); // GET /videos
router.get('/trending', VideoController.getTrending); // GET /videos/trending
router.get('/tags', VideoController.getByTag); // GET /videos/tags
router.get('/search', VideoController.search); // GET /videos/search
router.get('/:id/view', VideoController.getVideo); // GET /videos/:id
router.put('/:id/view', VideoController.addView); // PUT /videos/:id
router.get('/:id/view', VideoController.getVideo); // GET /videos/:id/view
router.put('/:id/view', VideoController.addView); // PUT /videos/:id/view
router.put(
'/:id/edit',
getAuthToken,
Expand Down

0 comments on commit dc040d9

Please sign in to comment.