11 lines
234 B
JavaScript
11 lines
234 B
JavaScript
|
import express from 'express';
|
||
|
const router = express.Router();
|
||
|
import auth from '../middleware/auth.js';
|
||
|
import { createProperty } from '../controllers/property.js';
|
||
|
|
||
|
router.post('/', auth, createProperty);
|
||
|
|
||
|
|
||
|
|
||
|
export default router;
|