forked from DebaucheryLibrarian/traxxx
Added actors page. Added site logos with overview on network page.
This commit is contained in:
16
src/web/actors.js
Normal file
16
src/web/actors.js
Normal file
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
const { fetchActors } = require('../actors');
|
||||
|
||||
async function fetchActorsApi(req, res) {
|
||||
const actorId = typeof req.params.actorId === 'number' ? req.params.actorId : null;
|
||||
const actorSlug = typeof req.params.actorId === 'string' ? req.params.actorId : null;
|
||||
|
||||
const actors = await fetchActors(actorId, actorSlug);
|
||||
|
||||
res.send(actors);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
fetchActors: fetchActorsApi,
|
||||
};
|
||||
Reference in New Issue
Block a user