- Update API routes for consistency and versioning. any communication with donetick will go through /api/v1. for external will user prefix /eapi/v1

- Update Readme and add Discord and Reddit
This commit is contained in:
Mo Tarbin 2025-01-02 23:21:05 -05:00
parent 776e510c0c
commit b7b434ae8c
8 changed files with 26 additions and 10 deletions

View file

@ -427,7 +427,7 @@ func (h *Handler) AcceptJoinRequest(c *gin.Context) {
func Routes(router *gin.Engine, h *Handler, auth *jwt.GinJWTMiddleware) {
log.Println("Registering routes")
circleRoutes := router.Group("circles")
circleRoutes := router.Group("api/v1/circles")
circleRoutes.Use(auth.MiddlewareFunc())
{
circleRoutes.GET("/members", h.GetCircleMembers)