diff options
author | Matt Strapp <matt@mattstrapp.net> | 2022-02-14 20:44:14 -0600 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2022-02-14 20:44:14 -0600 |
commit | fb66bbca33e6d7c1eacc38599c3eb7d35d9e0b1b (patch) | |
tree | 171f0df8c959d7faeaef7b9bfd6878a997cc81a2 /src/routes/api.ts | |
parent | Reorder middleware for "security" (diff) | |
download | ee4511w-web-fb66bbca33e6d7c1eacc38599c3eb7d35d9e0b1b.tar ee4511w-web-fb66bbca33e6d7c1eacc38599c3eb7d35d9e0b1b.tar.gz ee4511w-web-fb66bbca33e6d7c1eacc38599c3eb7d35d9e0b1b.tar.bz2 ee4511w-web-fb66bbca33e6d7c1eacc38599c3eb7d35d9e0b1b.tar.lz ee4511w-web-fb66bbca33e6d7c1eacc38599c3eb7d35d9e0b1b.tar.xz ee4511w-web-fb66bbca33e6d7c1eacc38599c3eb7d35d9e0b1b.tar.zst ee4511w-web-fb66bbca33e6d7c1eacc38599c3eb7d35d9e0b1b.zip |
organize imports
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'src/routes/api.ts')
-rw-r--r-- | src/routes/api.ts | 10 |
1 files changed, 4 insertions, 6 deletions
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(); |