estatesfunding/ef-api/routes/property.js

13 lines
302 B
JavaScript
Raw Normal View History

2024-09-12 08:11:07 +00:00
import express from 'express';
const router = express.Router();
import auth from '../middleware/auth.js';
2024-09-16 10:55:17 +00:00
import { createProperty, getUserProperties } from '../controllers/property.js';
2024-09-12 08:11:07 +00:00
router.post('/', auth, createProperty);
2024-09-16 10:55:17 +00:00
router.get('/user/:userId', getUserProperties);
2024-09-12 08:11:07 +00:00
export default router;