Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
parent
103f13762b
commit
86fc82dcc3
2 changed files with 10 additions and 1 deletions
|
@ -9,6 +9,15 @@ const server = new Server({
|
|||
root: `${Deno.cwd()}/dist`,
|
||||
})
|
||||
|
||||
server.use(async (request, next) => {
|
||||
// Here you can modify the request before being passed to next middlewares
|
||||
const response = await next(request);
|
||||
|
||||
response.headers.set('Access-Control-Allow-Origin', '*')
|
||||
// Here you can modify the response before being returned to the previous middleware
|
||||
return response;
|
||||
});
|
||||
|
||||
server.use(expires())
|
||||
|
||||
server.use(not_found({
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"names":{"_":"19279f92ae69bfa6df89438eeea81dae0f96af5dc4da225d7e081fc8f44d017a","sam":"19279f92ae69bfa6df89438eeea81dae0f96af5dc4da225d7e081fc8f44d017a"},"relays":{"19279f92ae69bfa6df89438eeea81dae0f96af5dc4da225d7e081fc8f44d017a":["wss://relay.froth.zone"]}}
|
||||
{"names":{"sam_ap":"19279f92ae69bfa6df89438eeea81dae0f96af5dc4da225d7e081fc8f44d017a","sam":"5413736701706b45f4510eaca39deb5617fdf0370828d6f57c2a2d8ad4444688"},"relays":{"19279f92ae69bfa6df89438eeea81dae0f96af5dc4da225d7e081fc8f44d017a":["wss://relay.froth.zone"],"5413736701706b45f4510eaca39deb5617fdf0370828d6f57c2a2d8ad4444688":["wss://relay.froth.zone","wss://nostr.getgle.org"]}}
|
||||
|
|
Loading…
Reference in a new issue