finish taller5
This commit is contained in:
12
taller5/backend/routes/autoRoute.js
Normal file
12
taller5/backend/routes/autoRoute.js
Normal file
@@ -0,0 +1,12 @@
|
||||
'use strict'
|
||||
var express = require('express');
|
||||
|
||||
var autoController = require('../controllers/autoController');
|
||||
|
||||
var api = express.Router();
|
||||
|
||||
api.get('/auto', autoController.list_autos);
|
||||
api.post('/auto', autoController.new_auto);
|
||||
api.delete('/auto/:id', autoController.delete_auto);
|
||||
|
||||
module.exports = api;
|
12
taller5/backend/routes/marcaRoute.js
Normal file
12
taller5/backend/routes/marcaRoute.js
Normal file
@@ -0,0 +1,12 @@
|
||||
'use strict'
|
||||
var express = require('express');
|
||||
|
||||
var marcaController = require('../controllers/marcaController');
|
||||
|
||||
var api = express.Router();
|
||||
|
||||
api.get('/marca', marcaController.list_marcas);
|
||||
api.post('/marca', marcaController.new_marca);
|
||||
api.delete('/marca/:id', marcaController.delete_marca);
|
||||
|
||||
module.exports = api;
|
Reference in New Issue
Block a user