mirror of
https://github.com/myfatemi04/wheelshare-old-backend.git
synced 2025-04-20 11:40:16 -04:00
10 lines
250 B
TypeScript
10 lines
250 B
TypeScript
import { Router } from 'express';
|
|
import { GroupModel } from '../models';
|
|
|
|
export const router = Router();
|
|
|
|
router.get('/groups', async (req, res) => {
|
|
let groups = await GroupModel.find().exec();
|
|
res.json({ status: 'success', data: groups });
|
|
});
|