Create the API module
This commit is contained in:
parent
14d39b2599
commit
79146983da
2 changed files with 12 additions and 2 deletions
4
index.js
4
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))});
|
||||
|
||||
|
|
10
scripts/API.JS
Normal file
10
scripts/API.JS
Normal file
|
@ -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;
|
Loading…
Add table
Add a link
Reference in a new issue