Skip to content

Commit 7896c8b

Browse files
committed
[xs] removed duplicated endpoint
1 parent 2f09a50 commit 7896c8b

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

index.js

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -154,29 +154,6 @@ module.exports.makeApp = function () {
154154
next()
155155
})
156156

157-
/*
158-
Route to check the status of the application by
159-
calling the package_search of backend with row count as 0
160-
to check whether the application is returning response or not
161-
*/
162-
app.use('/status', async (req, res) => {
163-
const url = resolve(
164-
config.get('API_URL'),
165-
`package_search?rows=0`
166-
)
167-
const response = await fetch(url)
168-
if (response.ok) {
169-
const body = await response.json()
170-
if (body.success == true) {
171-
res.status(200).send('Ok')
172-
} else {
173-
res.status(400).send('Not Ok')
174-
}
175-
176-
}
177-
})
178-
179-
180157
loadPlugins(app)
181158
loadTheme(app)
182159

0 commit comments

Comments
 (0)