mirror of https://github.com/Kylart/KawAnime.git
16 lines
451 B
JavaScript
16 lines
451 B
JavaScript
const {
|
|
getWatchList,
|
|
initOfficialApi,
|
|
resetCreds,
|
|
actOnList
|
|
} = require('./official.js')
|
|
|
|
const routes = [
|
|
(app) => app.get('/getWatchList', ({query}, res) => getWatchList(query, res)),
|
|
(app) => app.post('/_initOfficalApi', (req, res) => initOfficialApi(req, res)),
|
|
(app) => app.post('/_resetCreds', (req, res) => resetCreds(req, res)),
|
|
(app) => app.post('/actOnMalList', (req, res) => actOnList(req, res))
|
|
]
|
|
|
|
module.exports = routes
|