-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
40 lines (38 loc) · 1.14 KB
/
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import adRoutes from './ads';
import artistImageRoutes from './artist_images';
import artistRoutes from './artists';
import articleRoutes from './articles';
import endorsementRoutes from './endorsements';
import labelRoutes from './labels';
import promoRoutes from './promos';
import releaseRoutes from './releases';
import releaseVendorRoutes from './release_vendors';
import discRoutes from './discs';
import creditRoutes from './credits';
import featureRoutes from './features';
import trackRoutes from './tracks';
import vendorRoutes from './vendors';
import videoRoutes from './videos';
import userRoutes from './users';
const routes = (fastify) => {
fastify.get('/health', async (req, reply) => {
reply.send('OK');
});
adRoutes(fastify);
artistImageRoutes(fastify);
artistRoutes(fastify);
articleRoutes(fastify);
endorsementRoutes(fastify);
labelRoutes(fastify);
promoRoutes(fastify);
releaseRoutes(fastify);
releaseVendorRoutes(fastify);
discRoutes(fastify);
creditRoutes(fastify);
trackRoutes(fastify);
featureRoutes(fastify);
vendorRoutes(fastify);
videoRoutes(fastify);
userRoutes(fastify);
};
export default routes;