mirror of
https://github.com/20kaushik02/spotify-manager.git
synced 2026-01-25 06:04:05 +00:00
back again...
bit of validation, some fixes, some auth corrections scrapped graph db stuff some misc. stuff, check the diff if you want bruh
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
const router = require('express').Router();
|
||||
|
||||
const { login, callback, refresh, logout } = require('../controllers/auth');
|
||||
const { isAuthenticated } = require('../middleware/authCheck');
|
||||
const validator = require("../validators");
|
||||
|
||||
router.get(
|
||||
@@ -15,7 +16,7 @@ router.get(
|
||||
|
||||
router.get(
|
||||
"/refresh",
|
||||
validator.validate,
|
||||
isAuthenticated,
|
||||
refresh
|
||||
)
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ const router = require('express').Router();
|
||||
|
||||
const { getUserPlaylists, getPlaylistDetails, } = require('../controllers/playlists');
|
||||
const { isAuthenticated } = require('../middleware/authCheck');
|
||||
const { getPlaylistDetailsValidator } = require('../validators/playlists');
|
||||
const validator = require("../validators");
|
||||
|
||||
router.get(
|
||||
@@ -13,6 +14,7 @@ router.get(
|
||||
router.get(
|
||||
"/details",
|
||||
isAuthenticated,
|
||||
getPlaylistDetailsValidator,
|
||||
validator.validate,
|
||||
getPlaylistDetails
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user