-
Notifications
You must be signed in to change notification settings - Fork 291
Expand file tree
/
Copy pathindex.js
More file actions
59 lines (56 loc) · 2.61 KB
/
index.js
File metadata and controls
59 lines (56 loc) · 2.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import formBody from '@fastify/formbody';
import websocket from '@fastify/websocket';
import websocketController from './websocket.js';
import staticController from './static.js';
import docsController from './docs.js';
import configController from './config.js';
import apiController from './api.js';
import mediaProxyController from './mediaProxy.js';
import rootController from './root.js';
import encoderController from './encoder.js';
import decoderController from './decoder.js';
import authcoderController from './authcoder.js';
import webController from './web.js';
import httpController from './http.js';
import clipboardPusherController from './clipboard-pusher.js';
// import taskerController from './tasker.js';
import cronTaskerController from './cron-tasker.js';
import sourceCheckerController from './source-checker.js';
import imageStoreController from './image-store.js';
import webdavProxyController from './webdav-proxy.js';
import ftpProxyController from './ftp-proxy.js';
import fileProxyController from './file-proxy.js';
import m3u8ProxyController from './m3u8-proxy.js';
import unifiedProxyController from './unified-proxy.js';
import githubController from './github.js';
import websocketServerController from "./websocketServer.js";
export const registerRoutes = (fastify, options) => {
fastify.register(formBody);
fastify.register(websocket);
fastify.register(websocketController, options);
fastify.register(staticController, options);
fastify.register(docsController, options);
fastify.register(configController, options);
fastify.register(apiController, options);
fastify.register(mediaProxyController, options);
fastify.register(rootController, options);
fastify.register(encoderController, options);
fastify.register(decoderController, options);
fastify.register(authcoderController, options);
fastify.register(webController, options);
fastify.register(httpController, options);
fastify.register(clipboardPusherController, options);
// fastify.register(taskerController, options);
fastify.register(cronTaskerController, options);
fastify.register(sourceCheckerController, options);
fastify.register(imageStoreController, options);
fastify.register(webdavProxyController, options);
fastify.register(ftpProxyController, options);
fastify.register(fileProxyController, options);
fastify.register(m3u8ProxyController, options);
fastify.register(unifiedProxyController, options);
fastify.register(githubController, options);
};
export const registerWsRoutes = (wsApp, options) => {
wsApp.register(websocketServerController, options);
};