Skip to content

Commit c5206f6

Browse files
committed
chore(project): add index
1 parent 3a8bae3 commit c5206f6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/routes/api/project/index.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Router } from 'express'
2+
import Controller from './controller'
3+
import Validator from './validators'
4+
import { successListener } from 'rabbitmq/jobqueue'
5+
6+
const router: Router = Router()
7+
const validator = new Validator()
8+
9+
router.post('/', validator.POST, Controller.runPOST)
10+
successListener.on('project_result', Controller.onSuccess)
11+
12+
export default router

0 commit comments

Comments
 (0)