commit 93e2da604268665883b3e18d5b16cc1f0535c670
parent 0218169ce64f89c3c7aaa7d7feb3aa7cb3e2d37d
Author: Sebastian <sebasjm@taler-systems.com>
Date: Wed, 1 Jul 2026 12:09:04 -0300
fix uri for dev
Diffstat:
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/packages/web-util/src/hooks/useNotifications.ts b/packages/web-util/src/hooks/useNotifications.ts
@@ -363,6 +363,18 @@ interface InnerSafeHandler<Args extends any[], R> extends SafeHandler<Args, R> {
function noop(): undefined {}
+export function simpleSafeHandler(fn: () => void) {
+ return newSafeHandlerBuilder()(async () => {
+ fn();
+ return {
+ type: "ok",
+ body: undefined,
+ case: "ok",
+ response: {} as any
+ }
+ },[])
+}
+
export function newSafeHandlerBuilder<
A extends any[],
B extends OperationResult<any, any>,
diff --git a/packages/web-util/src/serve.ts b/packages/web-util/src/serve.ts
@@ -130,13 +130,13 @@ export async function serve(opts: {
it will connect to this server using websocket and reload automatically when the code changes
<h1>Endpoints</h1>
<dl>
- <dt><a href="./app">app</a></dt>
+ <dt><a href="./app/">app</a></dt>
<dd>Where you can find the application. Reloads on update.</dd>
- <dt><a href="./examples">ui examples</a></dt>
+ <dt><a href="./examples/">ui examples</a></dt>
<dd>Where you can browse static UI examples. Reloads on update.</dd>
- <dt><a href="./ws">websocket</a></dt>
+ <dt><a href="./ws/">websocket</a></dt>
<dd>Announce when the code changes</dd>
</dl>
</body>