-
Notifications
You must be signed in to change notification settings - Fork 159
/
Copy pathindex.js
23 lines (22 loc) · 979 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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';
export const registerRoutes = (fastify, 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);
};