/**
 * Created by Omnius on 6/25/16.
 */
'use strict';

const security = {
    xframe: {
        rule: 'sameorigin'
    },
    hsts: {
        maxAge: '31536000',
        includeSubdomains: true
    },
    xss: true
};

module.exports = [
    {
        // Web login
        path: '/',
        method: 'GET',
        config: {
            handler: {
                rootHandler: {
                    type: 'index'
                }
            },
            cache: {
                privacy: 'public'
            },
            security
        }
    },
    // Invalid paths
    {
        path: '/{path*}',
        method: '*',
        config: {
            handler: {
                rootHandler: {
                    type: 'notfound'
                }
            },
            cache: {
                privacy: 'public'
            },
            security
        }
    }
];

/**
 * Created by Omnius on 6/25/16.
 */
'use strict';

const security = {
    xframe: {
        rule: 'sameorigin'
    },
    hsts: {
        maxAge: '31536000',
        includeSubdomains: true
    },
    xss: true
};

module.exports = [
    {
        // Web login
        path: '/',
        method: 'GET',
        config: {
            cache: {
                privacy: 'public'
            },
            handler: {
                rootHandler: {
                    type: 'index'
                }
            },
            security
        }
    },
    // Invalid paths
    {
        path: '/{path*}',
        method: '*',
        config: {
            cache: {
                privacy: 'public'
            },
            handler: {
                rootHandler: {
                    type: 'notfound'
                }
            },
            security
        }
    }
];

Rearrange object codes - no significant change
Rearrange object codes - no significant change
