13 lines
302 B
JavaScript
13 lines
302 B
JavaScript
import express from 'express';
|
|
const router = express.Router();
|
|
import auth from '../middleware/auth.js';
|
|
import { createProperty, getUserProperties } from '../controllers/property.js';
|
|
|
|
router.post('/', auth, createProperty);
|
|
router.get('/user/:userId', getUserProperties);
|
|
|
|
|
|
|
|
|
|
export default router;
|