Refactoring work to support multi-tenancy and multiple storage, database backends (#598)
* Backend infrastructure * New backend configuration work * Factor out KV prefixing * Don't put assets in the manifest cache * Removed fancy authentication stuff * Documentation updates
This commit is contained in:
@@ -26,7 +26,11 @@ Deno.test("Run a plugos endpoint server", async () => {
|
||||
const app = new Application();
|
||||
const port = 3123;
|
||||
|
||||
system.addHook(new EndpointHook(app, "/_/"));
|
||||
const endpointHook = new EndpointHook("/_/");
|
||||
|
||||
app.use((context, next) => {
|
||||
return endpointHook.handleRequest(system, context, next);
|
||||
});
|
||||
|
||||
const controller = new AbortController();
|
||||
app.listen({ port: port, signal: controller.signal });
|
||||
|
||||
Reference in New Issue
Block a user