From 79146983da3ea96b71ca6ad182e18bf9ff9fbd03 Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Sun, 6 Apr 2025 17:04:13 +0800 Subject: [PATCH] Create the API module --- index.js | 4 ++-- scripts/API.JS | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 scripts/API.JS diff --git a/index.js b/index.js index 823c7ce..1db299e 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,7 @@ const express = require('express'); const cors = require('cors'); const app = express(); -const MainAPI = require('./scripts/API.JS'); +const ExerciseTrackerAPI = require('./scripts/API.JS'); class WebServer { // Basic Configuration @@ -41,5 +41,5 @@ class WebServer { } } -new WebServer(() => {return (new MainAPI(app))}); +new WebServer(() => {return (new ExerciseTrackerAPI(app))}); diff --git a/scripts/API.JS b/scripts/API.JS new file mode 100644 index 0000000..da1c798 --- /dev/null +++ b/scripts/API.JS @@ -0,0 +1,10 @@ +class DBManagement {}; +DBManagement.Activities = require(`./database/management/management_activity.JS`); +DBManagement.Users = require(`./database/management/management_user.JS`); + +class ExerciseTrackerAPI { + constructor() { + } +} + +module.exports = ExerciseTrackerAPI; \ No newline at end of file