mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 11:58:13 +00:00
feat: use native fetch
This commit is contained in:
parent
00e3a13821
commit
6552c282d5
6 changed files with 13 additions and 92 deletions
|
|
@ -1,4 +1,3 @@
|
|||
import ky from "ky-universal";
|
||||
import type { GetPupilsResponse } from "../types.js";
|
||||
|
||||
import { BaseClient } from "./baseClient.js";
|
||||
|
|
@ -37,7 +36,7 @@ export class ParentClient extends BaseClient {
|
|||
const headers = new Headers({
|
||||
"Content-Type": "application/x-www-form-urlencoded",
|
||||
});
|
||||
const response = await ky(BASE_URL + "/parent/login", {
|
||||
const response = await fetch(BASE_URL + "/parent/login", {
|
||||
method: "POST",
|
||||
body: formData,
|
||||
headers: headers,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue