forked from KatowProject/animebatchs-API
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.js
44 lines (43 loc) · 974 Bytes
/
routes.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
41
42
43
44
const handler = require('./handler')
module.exports = [
{
method: 'GET',
path: '/api',
handler: handler.getStatus
},
{
method: 'GET',
path: '/api/page/{pagination}',
handler: handler.getPage
},
{
method: 'GET',
path: '/api/daftar-anime',
handler: handler.getDaftarNime
},
{
method: 'GET',
path: '/api/genre/{genre}/page/{pagination}',
handler: handler.getGenreAnimeList
},
{
method: 'GET',
path: '/api/season/{season}/page/{pagination}',
handler: handler.getSeasonAnimeList
},
{
method: 'GET',
path: '/api/genre-season-list',
handler: handler.getGenreSeasonList
},
{
method: 'GET',
path: '/api/anime/{anim}/',
handler: handler.getAnime
},
{
method: 'GET',
path: '/api/search/{query}',
handler: handler.getBySearch
}
]