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/backend/routes/functions.js

11 lines
303 B
JavaScript

const { Router } = require('express');
const { executeFunctionName } = require('../controllers/functions');
const FunctionsRouter = Router();
FunctionsRouter.route('/:functionName')
// Exécute la fonction demandée en paramètre
.post(executeFunctionName);
module.exports = FunctionsRouter;