Update index.ts
This commit is contained in:
parent
287e7e5660
commit
c9778e9176
15
src/index.ts
15
src/index.ts
|
|
@ -66,10 +66,17 @@ export default {
|
||||||
return json({
|
return json({
|
||||||
success: true,
|
success: true,
|
||||||
data: {
|
data: {
|
||||||
service: "dough-restful",
|
service: "Doughmination Restful",
|
||||||
description: "Combined Discord presence + profile/badges API.",
|
description: "Combined Discord presence + profile/badges API.",
|
||||||
repository_url: "https://git.gay/doughmination/dough-restful",
|
licence: "ESAL-2.0",
|
||||||
endpoints: ["/v1/users/:id", "/v1/users/:id/presence", "/v1/users/:id/profile", "/socket"],
|
repository_url: "https://git.gay/doughmination/restful",
|
||||||
|
main_endpoint: "/v1/users/:id",
|
||||||
|
websocket: "/socket",
|
||||||
|
healthcheck: "/status",
|
||||||
|
other_endpoints: ["/v1/users/:id/presence", "/v1/users/:id/profile"],
|
||||||
|
},
|
||||||
|
authors: {
|
||||||
|
doughmination: "https://git.gay/doughmination",
|
||||||
} as any,
|
} as any,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -131,4 +138,4 @@ export default {
|
||||||
async scheduled(_event: ScheduledController, env: Env, _ctx: ExecutionContext): Promise<void> {
|
async scheduled(_event: ScheduledController, env: Env, _ctx: ExecutionContext): Promise<void> {
|
||||||
await gatewayStub(env).fetch("https://do/connect");
|
await gatewayStub(env).fetch("https://do/connect");
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue