mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
Enable verbatim module syntax + more API routes
This commit is contained in:
parent
991a2cba84
commit
be9b2e3376
84 changed files with 438 additions and 192 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { HookTypes, Server } from "./types";
|
||||
import type { Server } from "./types";
|
||||
import { HookTypes } from "./types";
|
||||
|
||||
const registerPlugin = (server: Server) => {
|
||||
server.on(HookTypes.OnPostCreate, (req, newPost, author) => {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import EventEmitter from "eventemitter3";
|
||||
import { StatusWithRelations } from "~database/entities/Status";
|
||||
import { UserWithRelations } from "~database/entities/User";
|
||||
import { LysandObjectType } from "~types/lysand/Object";
|
||||
import type { StatusWithRelations } from "~database/entities/Status";
|
||||
import type { UserWithRelations } from "~database/entities/User";
|
||||
import type { LysandObjectType } from "~types/lysand/Object";
|
||||
|
||||
export enum HookTypes {
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue