mirror of
https://github.com/lklynet/hypermind.git
synced 2026-05-03 09:30:36 +00:00
fix: revert version to 0.9.0 and remove github mock endpoint
Remove mocked GitHub API response and implement actual API call
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hypermind",
|
||||
"version": "1.0.0",
|
||||
"version": "0.9.0",
|
||||
"description": "A decentralized P2P counter of active deployments",
|
||||
"main": "server.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -4,15 +4,6 @@ const setupGitHubRoutes = (router, dependencies) => {
|
||||
const { repo } = dependencies;
|
||||
|
||||
router.get("/api/github/latest-release", (req, res) => {
|
||||
/**
|
||||
* @fccview here - just mocking the call for now
|
||||
*/
|
||||
return res.json({
|
||||
tag_name: "1.1.0",
|
||||
html_url: `https://github.com/${repo.owner}/${repo.name}/releases/tag/v1.1.0`,
|
||||
published_at: "2023-06-01T12:00:00Z",
|
||||
body: "This is a test release",
|
||||
});
|
||||
|
||||
const options = {
|
||||
hostname: "api.github.com",
|
||||
|
||||
Reference in New Issue
Block a user