rm unused lib
This commit is contained in:
parent
0c1d093c40
commit
7de6cb4677
File diff suppressed because it is too large
Load Diff
|
@ -28,7 +28,6 @@
|
|||
"typescript": "^5.3.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"activitypub-express": "^4.4.1",
|
||||
"activitypub-http-signatures": "^2.0.1",
|
||||
"better-sqlite3": "^9.2.2",
|
||||
"knex": "^3.1.0",
|
||||
|
|
15
src/index.ts
15
src/index.ts
|
@ -1,5 +1,4 @@
|
|||
import express from "express";
|
||||
import ActivitypubExpress from "activitypub-express";
|
||||
import { get as getOutbox } from "./outbox.js";
|
||||
import { getById as getUserById, getNickname, get as getUserByNickname, getId as getUserId, User } from "./user.js";
|
||||
import { Routes } from "./router.js";
|
||||
|
@ -11,20 +10,8 @@ import { handleWebfingerGet } from "./net.js";
|
|||
const port = parseInt(process.env.port || "8080");
|
||||
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(
|
||||
express.json({ type: SITE.consts.jsonldTypes }),
|
||||
express.urlencoded({ extended: true }),
|
||||
SITE,
|
||||
express.urlencoded({ extended: true })
|
||||
);
|
||||
|
||||
app.post(Routes.inbox, handleInboxPost);
|
||||
|
|
Loading…
Reference in New Issue