beta/code-blocks (#1)
Reviewed-on: #1 Co-authored-by: obvTiger <obvtiger@epilogue.team> Co-committed-by: obvTiger <obvtiger@epilogue.team>
This commit is contained in:
parent
362b7aa15e
commit
d125640fe7
26 changed files with 1816 additions and 102 deletions
23
index.js
Normal file
23
index.js
Normal file
|
@ -0,0 +1,23 @@
|
|||
module.exports = (app, prisma) => {
|
||||
app.get("/", async (req, res) => {
|
||||
try {
|
||||
const data = req.body;
|
||||
|
||||
// input valiation
|
||||
|
||||
// business logic
|
||||
|
||||
// output validation
|
||||
|
||||
// output
|
||||
const response = {
|
||||
|
||||
};
|
||||
|
||||
res.json({ response });
|
||||
} catch (error) {
|
||||
console.log('Error:', error);
|
||||
res.status(500).json({ error: 'Internal server error' });
|
||||
}
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue