purest icon indicating copy to clipboard operation
purest copied to clipboard

purest config

Open NHTfuntin31 opened this issue 6 months ago • 0 comments

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/purest/config/providers.json b/node_modules/purest/config/providers.json
index 8dd1dae..002a9d2 100644
--- a/node_modules/purest/config/providers.json
+++ b/node_modules/purest/config/providers.json
@@ -2784,5 +2784,18 @@
         "authorization": "Bearer {auth}"
       }
     }
+  },
+  "trackmania": {
+    "default": {
+      "origin": "https://api.trackmania.com",
+      "path": "api/{path}",
+      "headers": {
+        "authorization": "Bearer {auth}"
+      }
+    },
+    "oauth": {
+      "origin": "https://api.trackmania.com",
+      "path": "oauth/{path}"
+    }
   }
 }

This issue body was partially generated by patch-package.

NHTfuntin31 avatar Aug 15 '24 15:08 NHTfuntin31