# all files / api/ get-file-structure.js

100% Statements 11/11
100% Branches 4/4
100% Functions 2/2
100% Lines 4/4
1 branch Ignored

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14

    1

    9
    9

     'use strict';

    // Dependencies:
    import fileStructure from '../file-structure';

    export default { handler };

    function handler (request, response) {
        let { type } = request.params;

        let structure = fileStructure.getStructure(type);
        response.send(structure);
    }