This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
FunctionProject/api/routes/categories.js

12 lines
277 B
JavaScript
Raw Normal View History

2020-08-03 12:04:07 +02:00
const { Router } = require('express')
const categoriesController = require('../controllers/categories')
2020-08-03 12:04:07 +02:00
const CategoriesRouter = Router()
CategoriesRouter.route('/')
2020-08-03 12:04:07 +02:00
// Récupère les catégories
.get(categoriesController.getCategories)
2020-08-03 12:04:07 +02:00
module.exports = CategoriesRouter