From 05666369a2e9bb23f9471b11009963eccc838bf6 Mon Sep 17 00:00:00 2001 From: Parker Date: Sun, 10 Nov 2024 23:17:10 -0600 Subject: Some clean-up --- api/static/js/api.js | 26 ------- api/templates/dashboard.html | 160 ------------------------------------------- api/templates/login.html | 105 ---------------------------- api/templates/signup.html | 112 ------------------------------ 4 files changed, 403 deletions(-) delete mode 100644 api/static/js/api.js delete mode 100644 api/templates/dashboard.html delete mode 100644 api/templates/login.html delete mode 100644 api/templates/signup.html (limited to 'api') diff --git a/api/static/js/api.js b/api/static/js/api.js deleted file mode 100644 index 243edf7..0000000 --- a/api/static/js/api.js +++ /dev/null @@ -1,26 +0,0 @@ -// Description: This file contains functions to access the API with JWT authentication. - -/** - * Accept an API endpoint, method, and body to send to the API. - * - If successful, return the response - * - If not, return false - * @param {*} endpoint API endpoint - * @param {*} method String (GET, POST, PUT, DELETE) - * @param {*} body Data to send to the API - * @returns response.json or false - */ -async function accessAPI(endpoint, method, body) { - let response = await fetch(`/api${endpoint}`, { - method: method, - body: body, - }); - - if (response.ok) { - let data = await response.json(); - data = await data; - return data; - - } - - return false; -} \ No newline at end of file diff --git a/api/templates/dashboard.html b/api/templates/dashboard.html deleted file mode 100644 index 25372bd..0000000 --- a/api/templates/dashboard.html +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - LinkLogger | Dashboard - - - - - - -
- - - - - - - - -
LinkVisitsRedirectExpire Date
-
- - - \ No newline at end of file diff --git a/api/templates/login.html b/api/templates/login.html deleted file mode 100644 index 8e59481..0000000 --- a/api/templates/login.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - LinkLogger | Login - - -
-

Incorrect username/password. Please try again.

-
- - - -
-
-

Don't have an account? Create one now

-
- - - - - - \ No newline at end of file diff --git a/api/templates/signup.html b/api/templates/signup.html deleted file mode 100644 index 32962b7..0000000 --- a/api/templates/signup.html +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - LinkLogger | Signup - - -
-

-
- - - -
-
-

Already have an account? Log in now

-

Passwords must be at least 8 characters long and contain a number, special character, and uppercase character.

-
- - - - - - \ No newline at end of file -- cgit v1.2.3-70-g09d2