Tons of refactoring, moving commands and slash commands into hooks
This commit is contained in:
@@ -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,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);
|
||||
|
||||
Reference in New Issue
Block a user