ForestAdmin/lumber

View on GitHub
serializers/application-token.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
const JSONAPISerializer = require('jsonapi-serializer').Serializer;

/**
 * @typedef {{ name: string }} InputApplicationToken
 */

const applicationTokenSerializer = new JSONAPISerializer('application-tokens', {
  attributes: ['name'],
});

module.exports = applicationTokenSerializer;