-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bregwin Jogi
committed
May 27, 2024
1 parent
2955301
commit 1cf2c8b
Showing
3 changed files
with
28 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
// src/routes/api/get.js | ||
|
||
const { createSuccessResponse } = require('../../response'); | ||
/** | ||
* Get a list of fragments for the current user | ||
*/ | ||
module.exports = (req, res) => { | ||
// TODO: this is just a placeholder. To get something working, return an empty array... | ||
res.status(200).json({ | ||
status: 'ok', | ||
// TODO: change me | ||
fragments: [], | ||
}); | ||
|
||
res.status(200).json( | ||
createSuccessResponse({ | ||
fragments: [], | ||
}) | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters