Skip to content

Commit 59215e1

Browse files
committed
changed api routes
1 parent e5d5f0b commit 59215e1

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/App.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
5555
try {
5656
// fetch from API
57-
let data = await getFrom("/api/status.json"); // Evoke helper method
57+
let data = await getFrom("/md-punch-in/api/status.json"); // Evoke helper method
5858
5959
// if there is no response set the store empty
6060
if (data.response === false) {
@@ -78,7 +78,7 @@
7878
const fetchOptions = async () => {
7979
8080
try {
81-
let data = await getFrom("/api/settings.json"); // Evoke helper method
81+
let data = await getFrom("/md-punch-in/api/settings.json"); // Evoke helper method
8282
8383
// if there is no response set the store empty
8484
if (data.response === false) {
@@ -97,7 +97,7 @@
9797
// --- Fetch Employees ---
9898
const fetchEmployees = async () => {
9999
try {
100-
let data = await getFrom("/api/employees.json"); // Evoke helper method
100+
let data = await getFrom("/md-punch-in/api/employees.json"); // Evoke helper method
101101
102102
// if there is no response set the store empty
103103
if (data.response === false) {

src/components/PunchForm.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
let focusedOnName = false; // Whether name input is focused (controls dropdown)
5959
let focusedOnStatus = false; // Whether status dropdown is open
6060
$: isVisible = false; // Toggles password visibility
61-
$: console.log($InfoStore);
6261
// Reactive values for dropdown data
6362
$: filteredEmployees = $EmployeeStore ? [...$EmployeeStore].map((e) => e.displayname) : [];
6463
$: statuses = $OptionsStore ? $OptionsStore.punch_options.map((e) => e.text.toUpperCase()) : [];

0 commit comments

Comments
 (0)