mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-08 06:25:48 +01:00
Added a simple API file in tools folder
Will probably use NextJS api instead
This commit is contained in:
9
tools/api.ts
Normal file
9
tools/api.ts
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import { serviceItem } from '../components/AppShelf/AppShelf.d';
|
||||||
|
|
||||||
|
export function pingQbittorrent(service: serviceItem): any {
|
||||||
|
console.log("Getting service.cookie for service: ", service);
|
||||||
|
if (!service.cookie)
|
||||||
|
service.cookie = "Test";
|
||||||
|
else
|
||||||
|
console.log(service.cookie);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user