Created
June 23, 2018 16:52
-
-
Save mohashari/7229ee7d2a95729b8843af4d00138608 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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