aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/index.ts9
-rw-r--r--src/routes/api.ts10
2 files changed, 8 insertions, 11 deletions
diff --git a/src/index.ts b/src/index.ts
index 385aecc..63c803c 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -1,11 +1,10 @@
+import cookieParser from 'cookie-parser';
+import csurf from 'csurf';
import express, { Request, Response } from 'express';
-
+import rateLimit from 'express-rate-limit';
+import helmet from 'helmet';
import path from 'path';
import { env } from 'process';
-import helmet from 'helmet';
-import csurf from 'csurf';
-import cookieParser from 'cookie-parser';
-import rateLimit from 'express-rate-limit';
import api from './routes/api';
const app = express();
diff --git a/src/routes/api.ts b/src/routes/api.ts
index ab0ff26..c3518d6 100644
--- a/src/routes/api.ts
+++ b/src/routes/api.ts
@@ -1,13 +1,11 @@
-import express, { Request, Response } from 'express';
-// Middleware for security
-import csurf from 'csurf';
+import { spawn } from 'child_process';
import cookieParser from 'cookie-parser';
+import csurf from 'csurf';
+import express, { Request, Response } from 'express';
import fileUpload, { UploadedFile } from 'express-fileupload';
-// For executing the python scripts
-import { access, stat } from 'fs/promises';
import { Stats } from 'fs';
+import { access, stat } from 'fs/promises';
import { quote } from 'shell-quote';
-import { spawn } from 'child_process';
const api = express.Router();