-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
Currently, ZTM's API routes are defined directly from the root path (e.g., /api/status
, /api/endpoints
). This works well when ZTM is used as a standalone application. However, it can lead to route conflicts when integrating ZTM into other applications that might have their API endpoints.
Could you introduce a configuration option to set a custom prefix for all ZTM API routes? This prefix would be prepended to all existing routes.
Example:
If the prefix is set to /ztm
, the routes would become:
/ztm/api/status
/ztm/api/endpoints
...
- Seamless Integration: ZTM can be easily embedded into other applications without risking route collisions.
- Customization: Users can choose a prefix that aligns with their existing application's structure.
- Flexibility: This change would not break existing setups where ZTM is used standalone (the prefix could default to an empty string).
naqvisxiaods
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers