Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion apps/api/internal/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
fmt.Printf("%v", err)
}

fmt.Fprintln(w, htmlContent)

Check failure on line 75 in apps/api/internal/api/api.go

View workflow job for this annotation

GitHub Actions / API Lint

Error return value of `fmt.Fprintln` is not checked (errcheck)
})

// Health check
Expand Down Expand Up @@ -119,9 +119,11 @@
// Event-specific routes
r.Route("/{eventId}", func(r chi.Router) {

r.Post("/interest", api.Handlers.EventInterest.AddEmailToEvent)

// General access
r.Use(mw.Auth.RequireAuth) // routes below this are protected
r.Get("/", api.Handlers.Event.GetEventByID)
r.Post("/interest", api.Handlers.EventInterest.AddEmailToEvent)
r.Get("/role", api.Handlers.Event.GetEventRole)

// Admin-only
Expand Down
Loading