Skip to content

Commit 1ab6a09

Browse files
committed
Refactor project structure and implement new controllers
- Moved API and web routes to server and client directories respectively. - Deleted old API and web route files. - Created new FilesController, FolderController, ImagesController, PreviewController, and UploadController to handle file operations, folder structure retrieval, image processing, and file uploads. - Implemented image optimization and caching using sharp and jszip. - Added functionality for file uploads as base64 and multipart form data. - Enhanced error handling and response messages across controllers.
1 parent 7dde429 commit 1ab6a09

File tree

10 files changed

+16
-432
lines changed

10 files changed

+16
-432
lines changed

.gitlab-ci.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

readme.md

Lines changed: 0 additions & 101 deletions
This file was deleted.

src/app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import express, { Request, Response } from 'express';
22
import { sendNotFound } from './utils/response.js';
33
import { configured } from './utils/config.js';
44
import { Database } from './utils/database.js';
5-
import API from './routes/api.js';
6-
import WEB from './routes/web.js';
5+
import API from './server/routes/api.js';
6+
import WEB from './client/routes/web.js';
77
const app = express();
88

99
/**

src/routes/api.ts

Lines changed: 0 additions & 264 deletions
This file was deleted.

0 commit comments

Comments
 (0)