'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _nodeBits = require('node-bits');

exports.default = function (config) {
  var apiRoot = config.root || '/api';
  return {
    verb: _nodeBits.GET,
    route: apiRoot + '/media',
    implementation: {
      get: function get(req, res) {
        var storage = config.storage,
            database = config.database;


        storage.getImage(req, res, database);
      }
    }
  };
};