mirror of
https://github.com/PretendoNetwork/account.git
synced 2026-09-30 06:12:26 -05:00
Remove subdomain routing from api to allow any domain to access it (For testing and internal)
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user