-
I'm sorry for the amount of questions that I am asking in these days, but I am evaluating the usage of acebase for a project of mine and I would like to understand better what are the tradeoffs involved and the easyness of doing various operations. I would like to use SvelteKit to generate the webapp, and serve acebase on the same server serving webpages (it is for a small project and I would like it to be as self-contained as it can get). To do this using SK hooks requires to have an handler from acebase-server to call, but as I can see in acebase-server sources, the express application is not stores as an accessible property of the server class. Would it be possible for it to be made visible? Edit: I am aware that I can extend the server application with custom routes, but those end up under |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 4 replies
-
Sure, I'll take a look at this tomorrow |
Beta Was this translation helpful? Give feedback.
-
Done, the Express app is now exposed through the Example usage: server.app.get('/hello', (req, res) => {
res.send('Hi!');
}); |
Beta Was this translation helpful? Give feedback.
Done, the Express app is now exposed through the
app
property on the server instance. See this commitExample usage: