mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-21 20:18:06 +02:00
12 lines
301 B
Go
12 lines
301 B
Go
package authanalysis
|
|||
|
|||
func registerProjectRoutes(router *gin.Engine) {
|
|||
router.PUT("/projects/:projectID", updateProject)
|
|||
}
|
|||
|
|||
func updateProject(c *gin.Context) {
|
|||
projectID := c.Param("projectID")
|
|||
requireOwnership(projectID, c.MustGet("userID"))
|
|||
projectStore.Update(projectID, c.PostForm("name"))
|
|||
}
|