Skip to content

Instantly share code, notes, and snippets.

@mohashari
Created June 23, 2018 16:52
Show Gist options
  • Select an option

  • Save mohashari/7229ee7d2a95729b8843af4d00138608 to your computer and use it in GitHub Desktop.

Select an option

Save mohashari/7229ee7d2a95729b8843af4d00138608 to your computer and use it in GitHub Desktop.
func main() {
router := gin.Default()
v1 := router.Group("/api/student")
{
v1.POST("", cretedStudent)
v1.GET("", fetchAllStudent)
v1.GET("/:id", fetchSingleStuden)
v1.PUT("/:id", updateStudent)
v1.DELETE("/:id", deleteStudent)
}
router.Run(":20001")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment