-
Notifications
You must be signed in to change notification settings - Fork 284
Expand file tree
/
Copy pathindex.js
More file actions
29 lines (28 loc) · 1.24 KB
/
index.js
File metadata and controls
29 lines (28 loc) · 1.24 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
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 taskController from './tasker.js';
import cronTaskerController from './cron-tasker.js';
export const registerRoutes = (fastify, 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(taskController, options);
fastify.register(cronTaskerController, options);
};