Skip to content

Commit

Permalink
Update archive.ts get file
Browse files Browse the repository at this point in the history
  • Loading branch information
GaspardRivoire authored Jul 18, 2024
1 parent e821ad0 commit 460ee7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/controllers/archive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Controller } from './controller';
const archiveController = new Controller('/archives');

// get file
archiveController.get({ path: 'get-file/*', userType: UserType.ADMIN }, async (req: Request, res: Response, next: NextFunction) => {
archiveController.get({ path: '/*', userType: UserType.ADMIN }, async (req: Request, res: Response, next: NextFunction) => {
const url = decodeURI(req.url);
const key = `archives${url}${url.split('/').length === 2 ? '/index.html' : url.indexOf('.') === -1 ? '.html' : ''}`;
try {
Expand Down

0 comments on commit 460ee7e

Please sign in to comment.