async function userIndex(req, res) {
try {
const userData = {
nome: "Gustavo O.R",
idade: 23,
stacks: [
{
NodeJS: ["ReactJS", "ReactNative", "NestJS", "Express"],
Java: ["Spring", "JSP"]
}
],
Databases: ["DB2", "SQL Server", "Amazon RDS", "Amazon Aurora", "PostgreSQL", "MongoDB", "OracleDB"],
Cloud: ["AWS Amazon", "Microsoft Azure"],
hobbies: ["Videogames", "Mangá", "Cozinhar", "Aprender coisas novas"]
};
return res.status(201).json(userData);
} catch (error) {
return res.status(500).json({ error: "Internal Error" });
}
}
app.get('/api/user', userIndex);
knmsn / hlocadora Goto Github PK
View Code? Open in Web Editor NEWCriando um sistema para locadoras ( Old school rsrs) usando JAVA/Netbeans.