(Info
s) Add KitsuDev
and change Speedrun.com
This commit is contained in:
parent
a4496117f8
commit
a1827a31e9
7 changed files with 84 additions and 9 deletions
|
@ -3,13 +3,13 @@ import {api} from "./shared/api.js";
|
|||
import {type HacktheboxInfo} from "#Infos/Hacking/Hackthebox.js";
|
||||
|
||||
const handler: Handler = async () => {
|
||||
const hackthebox: {profile: {activity: HacktheboxInfo[]}} = await api<{
|
||||
const hackthebox = await api<{
|
||||
profile: {
|
||||
activity: HacktheboxInfo[];
|
||||
};
|
||||
}>("https://www.hackthebox.com/api/v4/profile/activity/1063999");
|
||||
|
||||
const pwn = hackthebox.profile.activity.find((a: HacktheboxInfo) => a!.object_type === "machine");
|
||||
const pwn = hackthebox.profile.activity.find((a: HacktheboxInfo) => a?.object_type === "machine");
|
||||
if (!pwn) {
|
||||
return {
|
||||
statusCode: 404,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue