feat: personal pins on materials
A per-user jz_bm_material_pins table and PUT/DELETE /materials/{id}/pin
on the student API and its token twins: 204 for a material the caller
may see, idempotent, 404 otherwise. List rows, course rows and the
detail carry pinned. The plain list lists the caller's pins first
(newest pin first); with q the relevance order stays. A pin writes only
the pins table and never changes the material's revision.
This commit is contained in:
@@ -485,6 +485,8 @@ var studentRoutes = []string{
|
||||
"DELETE /readings/{id}/owned",
|
||||
"GET /materials",
|
||||
"GET /materials/{id}",
|
||||
"PUT /materials/{id}/pin",
|
||||
"DELETE /materials/{id}/pin",
|
||||
"GET /checklists",
|
||||
"POST /checklists",
|
||||
"GET /checklists/{id}",
|
||||
|
||||
Reference in New Issue
Block a user