chatbridge/server/routes/group.routes.ts

22 lines
382 B
TypeScript
Raw Normal View History

2023-07-25 01:40:22 +00:00
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