[GH-ISSUE #37] Extend server with custom route path (without /ext/[db name] prefix) #14

Closed
opened 2026-05-23 08:38:25 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @kbemcs on GitHub (Sep 14, 2022).
Original GitHub issue: https://github.com/appy-one/acebase-server/issues/37

It's not possible to extend the server with a path without prefix => It always has "/ext/[db name]" prefix.

Originally created by @kbemcs on GitHub (Sep 14, 2022). Original GitHub issue: https://github.com/appy-one/acebase-server/issues/37 It's not possible to extend the server with a path without prefix => It always has "/ext/[db name]" prefix.
Author
Owner

@kbemcs commented on GitHub (Sep 14, 2022):

i tried to completly remove the prefix in my fork https://github.com/kbemcs/acebase-server but somehow it doesn't worked :/

<!-- gh-comment-id:1246432913 --> @kbemcs commented on GitHub (Sep 14, 2022): i tried to completly remove the prefix in my fork https://github.com/kbemcs/acebase-server but somehow it doesn't worked :/
Author
Owner

@appy-one commented on GitHub (Sep 19, 2022):

You can use a server instance's app property to add custom routes:

const server = new AceBaseServer(dbname, options);
server.app.get('/myroute', handler);
<!-- gh-comment-id:1250716345 --> @appy-one commented on GitHub (Sep 19, 2022): You can use a server instance's `app` property to add custom routes: ```js const server = new AceBaseServer(dbname, options); server.app.get('/myroute', handler); ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/acebase-server#14
No description provided.