Let's just make GET / work in both PoHTTP server and client by copying the respective code from VeraId Authority. (NB: I'm using the term "client" in the context of PoHTTP, but technically speaking it's a CloudEvents server just like src/backgroundQueue in the Authority server).
I'd suggest a code structure similar to the one in the other app:
src
server
server.ts
...
client
server.ts
...
utils
fastify
server.ts
...
...
Let's also bring the Fastify plugins we'll need here eventually: Mongoose, notFoundHandler, etc. Note that this app does not need OAuth2.
Let's just make
GET /
work in both PoHTTP server and client by copying the respective code from VeraId Authority. (NB: I'm using the term "client" in the context of PoHTTP, but technically speaking it's a CloudEvents server just likesrc/backgroundQueue
in the Authority server).I'd suggest a code structure similar to the one in the other app:
src
server
server.ts
client
server.ts
utils
fastify
server.ts
Let's also bring the Fastify plugins we'll need here eventually: Mongoose, notFoundHandler, etc. Note that this app does not need OAuth2.