📁 Changed TDrive root folder (#16)

📁 Changed TDrive root folder
This commit is contained in:
Montassar Ghanmy
2023-04-11 10:04:29 +01:00
committed by GitHub
parent 3b3f67af07
commit e0615fa867
10548 changed files with 48 additions and 48 deletions
@@ -0,0 +1,23 @@
import { Prefix, TdriveService } from "../../core/platform/framework";
import WebServerAPI from "../../core/platform/services/webserver/provider";
import web from "./web";
@Prefix("/internal/services/documents/v1")
export default class DocumentsService extends TdriveService<undefined> {
version = "1";
name = "documents";
public doInit: () => Promise<this> = async () => {
const fastify = this.context.getProvider<WebServerAPI>("webserver").getServer();
fastify.register((instance, _options, next) => {
web(instance, { prefix: this.prefix });
next();
});
return this;
};
api = (): undefined => {
return undefined;
};
}