Remove subdomain routing from api to allow any domain to access it (For testing and internal)

This commit is contained in:
William Oldham
2024-09-21 18:10:12 +01:00
parent 0aed6cb932
commit 4d22d226b8

View File

@@ -1,5 +1,4 @@
import express from 'express';
import subdomain from 'express-subdomain';
import cors from 'cors';
import APIMiddleware from '@/middleware/api';
import { LOG_INFO } from '@/logger';
@@ -29,7 +28,7 @@ api.use('/v1/user', V1.USER);
const router = express.Router();
// * Create subdomains
LOG_INFO('[USER API] Creating \'api\' subdomain');
router.use(subdomain('api', api));
LOG_INFO('[USER API] Registering \'api\' router');
router.use(api);
export default router;