Skip to content

Commit ea1442c

Browse files
committed
fixes and improvements
1 parent 0c7526b commit ea1442c

60 files changed

Lines changed: 1026 additions & 1545 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

backend/cmd/server/main.go

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -162,20 +162,6 @@ func main() {
162162
handler := api.NewHandler(database, annotationSvc, tokenRefresher, syncSvc, recService)
163163
handler.RegisterRoutes(r)
164164

165-
r.Post("/api/annotations", annotationSvc.CreateAnnotation)
166-
r.Put("/api/annotations", annotationSvc.UpdateAnnotation)
167-
r.Delete("/api/annotations", annotationSvc.DeleteAnnotation)
168-
r.Post("/api/annotations/like", annotationSvc.LikeAnnotation)
169-
r.Delete("/api/annotations/like", annotationSvc.UnlikeAnnotation)
170-
r.Post("/api/annotations/reply", annotationSvc.CreateReply)
171-
r.Delete("/api/annotations/reply", annotationSvc.DeleteReply)
172-
r.Post("/api/highlights", annotationSvc.CreateHighlight)
173-
r.Put("/api/highlights", annotationSvc.UpdateHighlight)
174-
r.Delete("/api/highlights", annotationSvc.DeleteHighlight)
175-
r.Post("/api/bookmarks", annotationSvc.CreateBookmark)
176-
r.Put("/api/bookmarks", annotationSvc.UpdateBookmark)
177-
r.Delete("/api/bookmarks", annotationSvc.DeleteBookmark)
178-
179165
r.Route("/auth", func(r chi.Router) {
180166
r.Use(middleware.Throttle(10))
181167
r.Get("/login", oauthHandler.HandleLogin)
@@ -188,11 +174,6 @@ func main() {
188174
r.Get("/client-metadata.json", oauthHandler.HandleClientMetadata)
189175
r.Get("/jwks.json", oauthHandler.HandleJWKS)
190176

191-
r.Get("/api/tags/trending", handler.HandleGetTrendingTags)
192-
r.Put("/api/profile", handler.UpdateProfile)
193-
r.Get("/api/profile/{did}", handler.GetProfile)
194-
r.Post("/api/profile/avatar", handler.UploadAvatar)
195-
196177
port := getEnv("PORT", "8081")
197178
server := &http.Server{
198179
Addr: ":" + port,

0 commit comments

Comments
 (0)