🐯 Prowlarr settings form scaffold
This commit is contained in:
@@ -5,9 +5,9 @@ import axios from "axios";
|
|||||||
|
|
||||||
export const ProwlarrSettingsForm = (props) => {
|
export const ProwlarrSettingsForm = (props) => {
|
||||||
const { data } = useQuery({
|
const { data } = useQuery({
|
||||||
queryFn: async () => {
|
queryFn: async (): any => {
|
||||||
return await axios({
|
return await axios({
|
||||||
url: `${PROWLARR_SERVICE_BASE_URI}/indexers`,
|
url: `${PROWLARR_SERVICE_BASE_URI}/getIndexers`,
|
||||||
method: "POST",
|
method: "POST",
|
||||||
data: {
|
data: {
|
||||||
host: "localhost",
|
host: "localhost",
|
||||||
@@ -19,7 +19,12 @@ export const ProwlarrSettingsForm = (props) => {
|
|||||||
queryKey: ["prowlarrConnectionResult"],
|
queryKey: ["prowlarrConnectionResult"],
|
||||||
});
|
});
|
||||||
console.log(data);
|
console.log(data);
|
||||||
return <>Prowlarr Settings.</>;
|
return (
|
||||||
|
<>
|
||||||
|
Prowlarr Settings.
|
||||||
|
<form></form>
|
||||||
|
</>
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default ProwlarrSettingsForm;
|
export default ProwlarrSettingsForm;
|
||||||
|
|||||||
Reference in New Issue
Block a user