♻️🎨 connector: light cleanup, load (#525)
renaming logger, adding health endpoint, working with old API, removing aggressive force save stuff, missing forgotten files etc, documentation
This commit is contained in:
committed by
ericlinagora
parent
16dbf8077b
commit
92aad866d5
@@ -4,6 +4,10 @@ import authMiddleware from '@/middlewares/auth.middleware';
|
||||
import requirementsMiddleware from '@/middlewares/requirements.middleware';
|
||||
import { Router } from 'express';
|
||||
|
||||
/**
|
||||
* When the user previews or edits a file in Twake Drive, their browser is sent to these routes
|
||||
* which return a webpage that instantiates the client side JS Only Office component.
|
||||
*/
|
||||
class IndexRoute implements Routes {
|
||||
public path = '/';
|
||||
public router = Router();
|
||||
|
||||
@@ -15,7 +15,7 @@ class OnlyOfficeRoute implements Routes {
|
||||
|
||||
private initRoutes = () => {
|
||||
this.router.get(`${this.path}:mode/read`, requirementsMiddleware, this.onlyOfficeController.read);
|
||||
this.router.post(`${this.path}:mode/save`, requirementsMiddleware, this.onlyOfficeController.save);
|
||||
this.router.post(`${this.path}:mode/save`, requirementsMiddleware, this.onlyOfficeController.ooCallback);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user