rhythia-api 65.0.0 → 66.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api/getProfile.ts CHANGED
@@ -23,7 +23,7 @@ export const Schema = {
23
23
  }),
24
24
  };
25
25
 
26
- export async function GET(
26
+ export async function POST(
27
27
  res: Response
28
28
  ): Promise<(typeof Schema)["output"]["_type"]> {
29
29
  const toParse = await res.json();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rhythia-api",
3
- "version": "65.0.0",
3
+ "version": "66.0.0",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
6
  "update": "bun ./scripts/update.ts",
@@ -0,0 +1,10 @@
1
+ const res = await fetch("https://development.rhythia.com/api/getProfile", {
2
+ method: "POST",
3
+ headers: {
4
+ "Content-Type": "application/json",
5
+ },
6
+ body: JSON.stringify({ id: 0 }),
7
+ });
8
+
9
+ console.log(await res.text());
10
+ export {};