Skip to content

Commit c0d4712

Browse files
authored
FEAT: Dashboard (#114)
* server.py text.py refactor, stats endpoint * add piechart * finish dashboard * remove useless yields from follow_tail * isort fix
1 parent 19d515f commit c0d4712

19 files changed

+478
-503
lines changed

frontend/src/components/commands/CommandAdd.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export function CommandAdd() {
5959

6060

6161
const fetchSchema = async () => {
62-
const response = await fetch('http://127.0.0.1:8000/schemas/command');
62+
const response = await fetch('http://127.0.0.1:8000/command/schema');
6363
if (!response.ok) {
6464
console.error('Failed to fetch command schema');
6565
openAlert('Failed to fetch command schema.');

frontend/src/components/commands/CommandEdit.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export function CommandEdit() {
6161

6262

6363
const fetchSchema = async () => {
64-
const response = await fetch('http://127.0.0.1:8000/schemas/command');
64+
const response = await fetch('http://127.0.0.1:8000/command/schema');
6565
if (!response.ok) {
6666
console.error('Failed to fetch command schema');
6767
openAlert('Failed to fetch command schema.');

0 commit comments

Comments
 (0)