remove unused code
This commit is contained in:
7
main.go
7
main.go
@@ -35,7 +35,6 @@ func main() {
|
||||
r := gin.Default()
|
||||
|
||||
v1 := r.Group("/api")
|
||||
r.POST("/test", testHandler)
|
||||
|
||||
subspesialis := v1.Group("/subspesialis")
|
||||
{
|
||||
@@ -76,8 +75,4 @@ func main() {
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
func testHandler(c *gin.Context) {
|
||||
err := errors.New("Nomor SEP tidak ditemukan")
|
||||
c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user