We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed66a6c commit 52ead55Copy full SHA for 52ead55
1 file changed
apps/dashboard-api/src/routes/auth.js
@@ -31,6 +31,13 @@ const dashboardLimiter = rateLimit({
31
router.post('/register', authLimiter, register);
32
33
router.post('/login', authLimiter, login);
34
+
35
+router.post('/send-otp', authLimiter, sendOtp);
36
+router.post('/verify-otp', authLimiter, verifyOtp);
37
38
+router.post('/forgot-password', authLimiter, forgotPassword);
39
+router.post('/reset-password', authLimiter, resetPassword);
40
41
router.get('/github/start', startGithubAuth);
42
router.get('/github/callback', handleGithubCallback);
43
@@ -40,12 +47,6 @@ router.put('/change-password', authorization, changePassword);
47
48
router.delete('/delete-account', authorization, deleteAccount);
49
-router.post('/send-otp', sendOtp);
44
-router.post('/verify-otp', verifyOtp);
45
-
46
-router.post('/forgot-password', forgotPassword);
-router.post('/reset-password', resetPassword);
50
router.post('/refresh-token', refreshToken);
51
router.post('/logout', authorization, logout);
52
0 commit comments