blob: 3f8a16555a6e29336f2c73fba8adf5fefc7b91c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package main
import "fmt"
import "net/http"
import "github.com/gin-gonic/gin"
import lesson "git.altafcreator.com/learnsmp.id-backend/modules/subject/lesson"
var albums = []int{}
func main() {
fmt.Println("Hello, world!")
router := gin.Default()
router.GET("/lessons", getAlbums)
router.Run("localhost:9090")
}
func getAlbums(c *gin.Context) {
c.IndentedJSON(http.StatusOK, albums)
lesson.Test()
}
|