Tons of refactoring, moving commands and slash commands into hooks

This commit is contained in:
Zef Hemel
2022-03-29 11:21:32 +02:00
parent bf32d6d0bd
commit b89aee97d7
42 changed files with 330 additions and 224 deletions
+2 -7
View File
@@ -44,15 +44,10 @@ functions:
- page:click
insertToday:
path: "./dates.ts:insertToday"
command:
name: Insert Current Date
slashCommand: today
slashCommand:
name: today
welcome:
path: "./server.ts:welcome"
events:
- plug:load
env: server
# renderMD:
# path: "./markdown.ts:renderMD"
# command:
# name: Render Markdown
+1 -4
View File
@@ -1,7 +1,4 @@
import {
EndpointRequest,
EndpointResponse,
} from "../../plugos/feature/endpoint";
import { EndpointRequest, EndpointResponse } from "../../plugos/hooks/endpoint";
export function endpointTest(req: EndpointRequest): EndpointResponse {
console.log("I'm running on the server!", req);