feat: Implement get app auth API endpoint

This commit is contained in:
Faruk AYDIN
2024-02-28 16:16:08 +01:00
parent 356668a68d
commit 5dca0191d2
4 changed files with 63 additions and 0 deletions

View File

@@ -2,9 +2,11 @@ import { Router } from 'express';
import asyncHandler from 'express-async-handler';
import { authenticateUser } from '../../../helpers/authentication.js';
import getAppAction from '../../../controllers/api/v1/apps/get-app.js';
import getAuthAction from '../../../controllers/api/v1/apps/get-auth.js';
const router = Router();
router.get('/:appKey', authenticateUser, asyncHandler(getAppAction));
router.get('/:appKey/auth', authenticateUser, asyncHandler(getAuthAction));
export default router;