Skip to content

Commit

Permalink
explored
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqksoliman committed Feb 26, 2025
1 parent 5066217 commit 1eabcf0
Show file tree
Hide file tree
Showing 16 changed files with 5,636 additions and 166 deletions.
2 changes: 1 addition & 1 deletion API/Backend/Config/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ let setup = {
}

s.app.use(
s.ROOT_PATH + "/API/configure",
s.ROOT_PATH + "/api/configure",
s.ensureAdmin(),
s.checkHeadersCodeInjection,
s.setContentType,
Expand Down
2 changes: 1 addition & 1 deletion API/Backend/Datasets/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ let setup = {
//Once the app initializes
onceInit: (s) => {
s.app.use(
s.ROOT_PATH + "/API/datasets",
s.ROOT_PATH + "/api/datasets",
s.ensureAdmin(),
s.checkHeadersCodeInjection,
s.setContentType,
Expand Down
4 changes: 2 additions & 2 deletions API/Backend/Draw/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let setup = {
//Once the app initializes
onceInit: (s) => {
s.app.use(
s.ROOT_PATH + "/API/files",
s.ROOT_PATH + "/api/files",
s.ensureUser(),
s.checkHeadersCodeInjection,
s.setContentType,
Expand All @@ -17,7 +17,7 @@ let setup = {
);

s.app.use(
s.ROOT_PATH + "/API/draw",
s.ROOT_PATH + "/api/draw",
s.ensureUser(),
s.checkHeadersCodeInjection,
s.setContentType,
Expand Down
2 changes: 1 addition & 1 deletion API/Backend/Geodatasets/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let setup = {
//Once the app initializes
onceInit: (s) => {
s.app.use(
s.ROOT_PATH + "/API/geodatasets",
s.ROOT_PATH + "/api/geodatasets",
s.ensureAdmin(),
s.checkHeadersCodeInjection,
s.setContentType,
Expand Down
2 changes: 1 addition & 1 deletion API/Backend/LongTermToken/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ let setup = {
//Once the app initializes
onceInit: (s) => {
s.app.use(
s.ROOT_PATH + "/API/longtermtoken",
s.ROOT_PATH + "/api/longtermtoken",
s.ensureAdmin(false, true),
s.checkHeadersCodeInjection,
s.setContentType,
Expand Down
2 changes: 1 addition & 1 deletion API/Backend/Shortener/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ let setup = {
//Once the app initializes
onceInit: (s) => {
s.app.use(
s.ROOT_PATH + "/API/shortener",
s.ROOT_PATH + "/api/shortener",
s.ensureUser(),
s.checkHeadersCodeInjection,
s.setContentType,
Expand Down
2 changes: 1 addition & 1 deletion API/Backend/Stac/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ let setup = {
//Once the app initializes
onceInit: (s) => {
s.app.use(
s.ROOT_PATH + "/API/stac",
s.ROOT_PATH + "/api/stac",
s.ensureAdmin(),
s.checkHeadersCodeInjection,
s.setContentType,
Expand Down
2 changes: 1 addition & 1 deletion API/Backend/Users/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const router = require("./routes/users");
let setup = {
//Once the app initializes
onceInit: (s) => {
s.app.use(s.ROOT_PATH + "/API/users", s.checkHeadersCodeInjection, router);
s.app.use(s.ROOT_PATH + "/api/users", s.checkHeadersCodeInjection, router);
},
//Once the server starts
onceStarted: (s) => {},
Expand Down
2 changes: 1 addition & 1 deletion API/Backend/Utils/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ let setup = {
//Once the app initializes
onceInit: (s) => {
s.app.use(
s.ROOT_PATH + "/API/utils",
s.ROOT_PATH + "/api/utils",
s.ensureUser(),
s.setContentType,
router
Expand Down
4 changes: 2 additions & 2 deletions API/Backend/Webhooks/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ let setup = {
//Once the app initializes
onceInit: (s) => {
s.app.use(
s.ROOT_PATH + "/API/webhooks",
s.ROOT_PATH + "/api/webhooks",
s.checkHeadersCodeInjection,
routerWebhooks
);
if (process.env.NODE_ENV === "development") {
s.app.use(
s.ROOT_PATH + "/API/testwebhooks",
s.ROOT_PATH + "/api/testwebhooks",
s.checkHeadersCodeInjection,
routerTestWebhooks
);
Expand Down
Loading

0 comments on commit 1eabcf0

Please sign in to comment.