Spaces:
Configuration error
Configuration error
Download Aethero_App/api/crew/create.js from xvadur/Aethero_github: direct link, hf CLI and curl.
- Browser
- Download file 389 Bytes
-
https://huggingface.co/spaces/xvadur/Aethero_github/resolve/main/Aethero_App/api/crew/create.js
- Command line
-
hf download hf://spaces/xvadur/Aethero_github/Aethero_App/api/crew/create.js
-
curl -L -o create.js https://huggingface.co/spaces/xvadur/Aethero_github/resolve/main/Aethero_App/api/crew/create.js
389 Bytes
| export default function handler(req, res) { | |
| if (req.method === 'POST') { | |
| const { name } = req.body; | |
| if (!name) { | |
| return res.status(400).json({ error: 'Team name is required' }); | |
| } | |
| // Logic to create a new team | |
| return res.status(201).json({ message: `Team '${name}' created successfully` }); | |
| } | |
| return res.status(405).json({ error: 'Method not allowed' }); | |
| } | |