{
  "routes": [
    {
      "method": "GET",
      "path": "/iso-locales",
      "handler": "iso-locales.listIsoLocales",
      "config": {
        "policies": [
          "admin::isAuthenticatedAdmin",
          ["plugins::content-manager.hasPermissions", ["plugins::i18n.locale.read"]]
        ]
      }
    },
    {
      "method": "GET",
      "path": "/locales",
      "handler": "locales.listLocales",
      "config": {
        "policies": [
          "admin::isAuthenticatedAdmin",
          ["plugins::content-manager.hasPermissions", ["plugins::i18n.locale.read"]]
        ]
      }
    },
    {
      "method": "POST",
      "path": "/locales",
      "handler": "locales.createLocale",
      "config": {
        "policies": [
          "admin::isAuthenticatedAdmin",
          ["plugins::content-manager.hasPermissions", ["plugins::i18n.locale.create"]]
        ]
      }
    },
    {
      "method": "PUT",
      "path": "/locales/:id",
      "handler": "locales.updateLocale",
      "config": {
        "policies": [
          "admin::isAuthenticatedAdmin",
          ["plugins::content-manager.hasPermissions", ["plugins::i18n.locale.update"]]
        ]
      }
    },
    {
      "method": "DELETE",
      "path": "/locales/:id",
      "handler": "locales.deleteLocale",
      "config": {
        "policies": [
          "admin::isAuthenticatedAdmin",
          ["plugins::content-manager.hasPermissions", ["plugins::i18n.locale.delete"]]
        ]
      }
    }
  ]
}

{
  "routes": [
    {
      "method": "GET",
      "path": "/iso-locales",
      "handler": "iso-locales.listIsoLocales",
      "config": {
        "policies": [
          "admin::isAuthenticatedAdmin",
          ["plugins::content-manager.hasPermissions", ["plugins::i18n.locale.read"]]
        ]
      }
    },
    {
      "method": "GET",
      "path": "/locales",
      "handler": "locales.listLocales",
      "config": {
        "policies": ["admin::isAuthenticatedAdmin"]
      }
    },
    {
      "method": "POST",
      "path": "/locales",
      "handler": "locales.createLocale",
      "config": {
        "policies": [
          "admin::isAuthenticatedAdmin",
          ["plugins::content-manager.hasPermissions", ["plugins::i18n.locale.create"]]
        ]
      }
    },
    {
      "method": "PUT",
      "path": "/locales/:id",
      "handler": "locales.updateLocale",
      "config": {
        "policies": [
          "admin::isAuthenticatedAdmin",
          ["plugins::content-manager.hasPermissions", ["plugins::i18n.locale.update"]]
        ]
      }
    },
    {
      "method": "DELETE",
      "path": "/locales/:id",
      "handler": "locales.deleteLocale",
      "config": {
        "policies": [
          "admin::isAuthenticatedAdmin",
          ["plugins::content-manager.hasPermissions", ["plugins::i18n.locale.delete"]]
        ]
      }
    }
  ]
}

Allow listing locales in api
Allow listing locales in api
