mirror of
https://github.com/versia-pub/server.git
synced 2025-12-08 01:08:19 +01:00
34 lines
670 B
TypeScript
34 lines
670 B
TypeScript
import { apiRoute, applyConfig } from "@api";
|
|
import { jsonResponse } from "@response";
|
|
|
|
export const meta = applyConfig({
|
|
allowedMethods: ["GET"],
|
|
auth: {
|
|
required: false,
|
|
},
|
|
ratelimits: {
|
|
duration: 60,
|
|
max: 500,
|
|
},
|
|
route: "/nodeinfo/2.0",
|
|
});
|
|
|
|
/**
|
|
* ActivityPub nodeinfo 2.0 endpoint
|
|
*/
|
|
export default apiRoute(() => {
|
|
// TODO: Implement this
|
|
return jsonResponse({
|
|
version: "2.0",
|
|
software: { name: "lysand", version: "0.0.1" },
|
|
protocols: ["activitypub"],
|
|
services: { outbound: [], inbound: [] },
|
|
usage: {
|
|
users: { total: 0, activeMonth: 0, activeHalfyear: 0 },
|
|
localPosts: 0,
|
|
},
|
|
openRegistrations: false,
|
|
metadata: {},
|
|
});
|
|
});
|