rm unused lib

This commit is contained in:
Moon Man 2023-12-27 09:20:19 -05:00
parent 0c1d093c40
commit 7de6cb4677
3 changed files with 21 additions and 2631 deletions

2636
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -28,7 +28,6 @@
"typescript": "^5.3.3" "typescript": "^5.3.3"
}, },
"dependencies": { "dependencies": {
"activitypub-express": "^4.4.1",
"activitypub-http-signatures": "^2.0.1", "activitypub-http-signatures": "^2.0.1",
"better-sqlite3": "^9.2.2", "better-sqlite3": "^9.2.2",
"knex": "^3.1.0", "knex": "^3.1.0",

View File

@ -1,5 +1,4 @@
import express from "express"; import express from "express";
import ActivitypubExpress from "activitypub-express";
import { get as getOutbox } from "./outbox.js"; import { get as getOutbox } from "./outbox.js";
import { getById as getUserById, getNickname, get as getUserByNickname, getId as getUserId, User } from "./user.js"; import { getById as getUserById, getNickname, get as getUserByNickname, getId as getUserId, User } from "./user.js";
import { Routes } from "./router.js"; import { Routes } from "./router.js";
@ -11,20 +10,8 @@ import { handleWebfingerGet } from "./net.js";
const port = parseInt(process.env.port || "8080"); const port = parseInt(process.env.port || "8080");
const app = express(); const app = express();
const SITE = ActivitypubExpress({
name: process.env.blog_name,
version: "1.0.0",
domain: process.env.blog_host,
actorParam: "actor",
objectParam: "id",
activityParam: "id",
Routes,
});
app.use( app.use(
express.json({ type: SITE.consts.jsonldTypes }), express.urlencoded({ extended: true })
express.urlencoded({ extended: true }),
SITE,
); );
app.post(Routes.inbox, handleInboxPost); app.post(Routes.inbox, handleInboxPost);