Skip to content

Commit 4111755

Browse files
committed
Update domain-frequency.ts
1 parent 9a3a354 commit 4111755

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/api/src/routes/domain-frequency.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const domainFrequencyRouter = express.Router();
1212

1313
// Get top domains by frequency
1414
domainFrequencyRouter.get(
15-
`/admin/domain-frequency/${process.env.BULL_AUTH_KEY}/top`,
15+
`/domain-frequency/${process.env.BULL_AUTH_KEY}/top`,
1616
async (req: Request, res: Response) => {
1717
try {
1818
const limit = parseInt(req.query.limit as string) || 100;
@@ -34,7 +34,7 @@ domainFrequencyRouter.get(
3434

3535
// Get frequency for a specific domain
3636
domainFrequencyRouter.get(
37-
`/admin/domain-frequency/${process.env.BULL_AUTH_KEY}/domain/:domain`,
37+
`/domain-frequency/${process.env.BULL_AUTH_KEY}/domain/:domain`,
3838
async (req: Request, res: Response) => {
3939
try {
4040
const { domain } = req.params;
@@ -70,7 +70,7 @@ domainFrequencyRouter.get(
7070

7171
// Get overall statistics
7272
domainFrequencyRouter.get(
73-
`/admin/domain-frequency/${process.env.BULL_AUTH_KEY}/stats`,
73+
`/domain-frequency/${process.env.BULL_AUTH_KEY}/stats`,
7474
async (req: Request, res: Response) => {
7575
try {
7676
const [stats, queueLength] = await Promise.all([

0 commit comments

Comments
 (0)