Browse Source

Merge branch 'hotfix/custom_routes_inaccessibles' into develop

Olivier Massot 1 year ago
parent
commit
9aae946058
3 changed files with 25 additions and 25 deletions
  1. 3 3
      doc/be_users.md
  2. 1 1
      doc/routing.md
  3. 21 21
      ot_admin/Readme.md

+ 3 - 3
doc/be_users.md

@@ -167,13 +167,13 @@ On créé le be_user correspondant, et on l'affecte au groupe edit_mysite.
 
 ###  L'administrateur ou un des éditeurs a été modifié dans le logiciel
 
-On déclenche une update des données des be_users via la commande
+On déclenche une update des données des be_users via la commande :
 
     php /var/www/typo3/vendor/bin/typo3 ot:site:reset-perms <organization-id>
 
-Ou en effectuant une requête HTTP à l'adresse:
+Ou en effectuant une requête HTTP à l'adresse :
 
-    GET https://preprod.opentalent.fr/typo3/index.php?route=/otadmin/site/reset-perms&organization-id=<organization-id>
+    GET https://<typo3_host>/typo3/otadmin/site/reset-perms?organization-id=<organization-id>
 
  
 

+ 1 - 1
doc/routing.md

@@ -53,7 +53,7 @@ Le rôle de ces classes sera donc de faire correspondre un domaine à un site vi
 ### Garder les routes à jour
 
 Un hook est nécessaire dans le logiciel pour garder à jour le champs 'subdomain' de la table 'ot_websites'. 
-Ce hook est déclenché par la requête http: `<typo3_host>/typo3/index.php?route=/otadmin/site/update&organization-id=<organization_id>`
+Ce hook est déclenché par la requête http: `<typo3_host>/typo3/otadmin/site/update?organization-id=<organization_id>`
 
 La redirection peut-être ajoutée en ligne de commande (voir [ot_admin](/ot_admin))
 

+ 21 - 21
ot_admin/Readme.md

@@ -3,29 +3,29 @@
 Admin-commands for managing the Typo3 instance. 
 This extension provides commands available by the API, CLI, or a dedicated admin-only BE module 
 
-|||
-|---|---|
-| Extension key | ot_admin |
-| Vendor | Opentalent |
-| Nom | OtAdmin |
+|               |            |
+|---------------|------------|
+| Extension key | ot_admin   |
+| Vendor        | Opentalent |
+| Nom           | OtAdmin    |
 
 ## CLI
 
 Pour exécuter une commande depuis la console 
-(dans le cas d'une installation Typo3 9.5, en mode composer, et avec php-fpm7.4) :
+(dans le cas d'une installation Typo3 9.5, en mode composer, et avec php fpm7.4) :
 
     php7.4 /var/www/typo3/vendor/bin/typo3 [command]
 
 Ou, si le script 'cli' a été ajouté lors de l'installation, 
-ce qui devrait être le cas des installations opentalent:
+ce qui devrait être le cas des installations opentalent :
 
     sh /var/www/typo3/cli [command]
 
-La liste des commandes fournies par cette extension peut-être obtenue avec:
+La liste des commandes fournies par cette extension peut être obtenue avec :
 
     php7.4 vendor/bin/typo3 list ot
 
-> A propos de l'implémentation de nouvelles commandes: https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/CommandControllers/Index.html
+> A propos de l'implémentation de nouvelles commandes : https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/CommandControllers/Index.html
 
 
 ## HTTP API
@@ -33,20 +33,20 @@ La liste des commandes fournies par cette extension peut-être obtenue avec:
 La majorité des commandes peuvent aussi être exécutées via une requête HTTP, 
 **à la condition que cette requête émane d'une adresse ip autorisée.
 
-Les adresses IP autorisées sont:
+Les adresses IP autorisées sont :
 
     /^127\.0\.0\.[0-1]$/
     /^localhost$/
     /^10\.8\.0\.[0-255]$/
 
-Les commandes disponibles sont:
-
-||||
-|---|---|---|
-| site/create | Create a new organization | `<typo3_host>/typo3/index.php?route=/otadmin/site/create&organization-id=<organization_id>` |
-| site/update | Update an organization | `<typo3_host>/typo3/index.php?route=/otadmin/site/update&organization-id=<organization_id>` |
-| site/delete | Soft-delete an organization | `<typo3_host>/typo3/index.php?route=/otadmin/site/delete&organization-id=<organization_id>` |
-| site/undelete | Restore a soft-deleted organization | `<typo3_host>/typo3/index.php?route=/otadmin/site/undelete&organization-id=<organization_id>` |
-| site/clear-cache | Clear the website's cache | `<typo3_host>/typo3/index.php?route=/otadmin/site/clear-cache&organization-id=<organization_id>` |
-| site/status | Get the current status of the website | `<typo3_host>/typo3/index.php?route=/otadmin/site/status&organization-id=<organization_id>[&full=1]` |
-| scan | Scan the whole Typo3 DB | `<typo3_host>/typo3/index.php?route=/otadmin/scan[&full=1]` |
+Les commandes disponibles sont :
+
+|                  |                                       |                                                                                     |
+|------------------|---------------------------------------|-------------------------------------------------------------------------------------|
+| site/create      | Create a new organization             | `<typo3_host>/typo3/otadmin/site/create?organization-id=<organization_id>`          |
+| site/update      | Update an organization                | `<typo3_host>/typo3/otadmin/site/update?organization-id=<organization_id>`          |
+| site/delete      | Soft-delete an organization           | `<typo3_host>/typo3/otadmin/site/delete?organization-id=<organization_id>`          |
+| site/undelete    | Restore a soft-deleted organization   | `<typo3_host>/typo3/otadmin/site/undelete?organization-id=<organization_id>`        |
+| site/clear-cache | Clear the website's cache             | `<typo3_host>/typo3/otadmin/site/clear-cache?organization-id=<organization_id>`     |
+| site/status      | Get the current status of the website | `<typo3_host>/typo3/otadmin/site/status?organization-id=<organization_id>[&full=1]` |
+| scan             | Scan the whole Typo3 DB               | `<typo3_host>/typo3/otadmin/scan[?full=1]`                                          |