mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
11 lines
357 B
JavaScript
11 lines
357 B
JavaScript
import { Router } from 'express'
|
|
import * as commandController from '../controllers/commandController.js'
|
|
import { newCommandValidator } from '../validators/commandValidator.js'
|
|
|
|
const router = Router()
|
|
|
|
router.post('/', newCommandValidator, commandController.newCommand)
|
|
router.post('/completed', commandController.completedCommand)
|
|
|
|
export default router
|