'use strict';

module.exports = {
  type: 'content-api',
  routes: [
    {
      method: 'POST',
      path: '/',
      handler: 'content-api.upload',
    },
    {
      method: 'GET',
      path: '/files/count',
      handler: 'content-api.count',
    },
    {
      method: 'GET',
      path: '/files',
      handler: 'content-api.find',
    },
    {
      method: 'GET',
      path: '/files/:id',
      handler: 'content-api.findOne',
    },
    {
      method: 'DELETE',
      path: '/files/:id',
      handler: 'content-api.destroy',
    },
  ],
};

'use strict';

module.exports = {
  type: 'content-api',
  routes: [
    {
      method: 'POST',
      path: '/',
      handler: 'content-api.upload',
    },
    {
      method: 'GET',
      path: '/files',
      handler: 'content-api.find',
    },
    {
      method: 'GET',
      path: '/files/:id',
      handler: 'content-api.findOne',
    },
    {
      method: 'DELETE',
      path: '/files/:id',
      handler: 'content-api.destroy',
    },
  ],
};

REMOVE count route from upload plugin
REMOVE count route from upload plugin