22 lines
382 B
TypeScript
22 lines
382 B
TypeScript
|
import express from 'express';
|
||
|
|
||
|
import {
|
||
|
createGroupHandler,
|
||
|
getGroupHandler
|
||
|
} from "../controllers/group.controller";
|
||
|
|
||
|
import {
|
||
|
createGroupSchema
|
||
|
} from "../schemas/group.schema";
|
||
|
|
||
|
import { validate } from "../middleware/validate";
|
||
|
|
||
|
const router = express.Router();
|
||
|
|
||
|
router
|
||
|
.route('/')
|
||
|
.post(createGroupHandler)
|
||
|
.get(getGroupHandler)
|
||
|
|
||
|
export default router
|