Viewing File: /usr/local/cpanel/base/frontend/jupiter/site-monitor/views/ROUTES.js

/*
# site-monitor/views/ROUTES.js                     Copyright 2021 cPanel, L.L.C.
#                                                           All rights reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited
*/

/* global define */

/** @namespace cpanel.siteMonitor.views.ROUTES */

define(
    [
        "cjt/util/locale"
    ],
    function(LOCALE) {

        "use strict";

        var ROUTES = [
            {
                "id": "listSiteMonitors",
                "path": "/",
                "hideTitle": false,
                "controller": "listSiteMonitors",
                "templateUrl": "views/listSiteMonitors.phtml",
                "title": LOCALE.maketext("Site Monitors"),
                "breadcrumb": {
                    "id": "listSiteMonitors",
                    "name": LOCALE.maketext("Site Monitors"),
                    "path": "/"
                },
                "resolve": {
                    "initialSites": ["sites", function(sitesAPI) {
                        return sitesAPI.get().then(
                            function(payload) {
                                return payload;
                            },
                            function(e) {
                                return new Error(e.error);
                            }
                        );
                    }]
                }
            },
        ];

        return ROUTES;
    }
);
Back to Directory File Manager