add web file headers

This commit is contained in:
2026-04-20 22:00:29 -06:00
parent 97acb7e17f
commit c4086c8072
33 changed files with 231 additions and 0 deletions

View File

@@ -1,3 +1,10 @@
/*
* Functions for calling the cart API endpoints on the backend.
*
* Author: Shiv
* Date: April 2026
*/
//Base path for all cart API calls
const BASE = "/api/v1/cart";

View File

@@ -1,3 +1,10 @@
/*
* Creates a STOMP WebSocket client for the live chat feature.
*
* Author: Shiv
* Date: April 2026
*/
import { Client } from "@stomp/stompjs";
//Backend URL for the WebSocket connection, empty string means same origin

View File

@@ -1,3 +1,10 @@
/*
* Helper that fetches every page from a paginated API into one array.
*
* Author: Shiv
* Date: April 2026
*/
//Fetches every page from a paginated API and returns all items in one array
export async function fetchAllPages(urlBuilder) {
const items = [];