@@ -24,7 +24,7 @@ To get a session ID, you will have to send a `POST` request to the `/api/auth` e
24
24
print(response.text)
25
25
```
26
26
27
- === "Javascript (plain)"
27
+ === "JavaScript (plain)"
28
28
29
29
```javascript
30
30
var data = JSON.stringify({"password":"your-password"});
@@ -37,7 +37,7 @@ To get a session ID, you will have to send a `POST` request to the `/api/auth` e
37
37
});
38
38
```
39
39
40
- === "Javascript (jQuery)"
40
+ === "JavaScript (jQuery)"
41
41
42
42
```javascript
43
43
$.ajax({
@@ -167,7 +167,7 @@ Note that when using cookie-based authentication, you will also need to send a `
167
167
print(response.text)
168
168
```
169
169
170
- === "Javascript (plain)"
170
+ === "JavaScript (plain)"
171
171
172
172
```javascript
173
173
var data = null;
@@ -184,7 +184,7 @@ Note that when using cookie-based authentication, you will also need to send a `
184
184
xhr.send(data);
185
185
```
186
186
187
- === "Javascript (jQuery)"
187
+ === "JavaScript (jQuery)"
188
188
189
189
```javascript
190
190
$.ajax({
@@ -240,7 +240,7 @@ If you have 2FA enabled for your Pi-hole, you will need to provide a TOTP token
240
240
print(response.text)
241
241
```
242
242
243
- === "Javascript (plain)"
243
+ === "JavaScript (plain)"
244
244
245
245
```javascript
246
246
var data = JSON.stringify({"password":"your-password", "totp":"123456"});
@@ -253,7 +253,7 @@ If you have 2FA enabled for your Pi-hole, you will need to provide a TOTP token
253
253
});
254
254
```
255
255
256
- === "Javascript (jQuery)"
256
+ === "JavaScript (jQuery)"
257
257
258
258
```javascript
259
259
$.ajax({
@@ -347,7 +347,7 @@ To end your session before the SID expires, you can send a `DELETE` request to t
347
347
print(response.text)
348
348
```
349
349
350
- === "Javascript (plain)"
350
+ === "JavaScript (plain)"
351
351
352
352
```javascript
353
353
var data = null;
@@ -363,7 +363,7 @@ To end your session before the SID expires, you can send a `DELETE` request to t
363
363
xhr.send(data);
364
364
```
365
365
366
- === "Javascript (jQuery)"
366
+ === "JavaScript (jQuery)"
367
367
368
368
```javascript
369
369
$.ajax({
0 commit comments