Added a simple API file in tools folder

Will probably use NextJS api instead
This commit is contained in:
Thomas "ajnart" Camlong
2022-04-30 21:35:14 +02:00
parent 793e45ff90
commit 863262b1e5

9
tools/api.ts Normal file
View 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);
}