mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-07 22:15:49 +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