Reworked AddAppShelfItem

Adds:
- Advanced Options tab
- Changed which ping status codes identify as "Online"
- Change if service opens in new tab or not

Fixes:
- Deluge and Transmission Password requirement
This commit is contained in:
Larvey
2022-06-16 15:38:50 -04:00
committed by ajnart
parent a20c5f8d12
commit 4516dde1f4
8 changed files with 235 additions and 122 deletions

View File

@@ -7,10 +7,10 @@ async function Get(req: NextApiRequest, res: NextApiResponse) {
await axios
.get(url as string)
.then((response) => {
res.status(200).json(response.data);
res.status(response.status).json(response.statusText);
})
.catch((error) => {
res.status(500).json(error);
res.status(error.response.status).json(error.response.statusText);
});
// // Make a request to the URL
// const response = await axios.get(url);