mirror of
https://github.com/Neur0toxine/demo-web-service-go.git
synced 2024-12-05 02:56:03 +03:00
14 lines
297 B
Go
14 lines
297 B
Go
package app
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/Neur0toxine/demo-web-service-go/internal/data/repository"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// AuthorsHandler will return formatted JSOn response with authors
|
|
func AuthorsHandler(c *gin.Context) {
|
|
c.IndentedJSON(http.StatusOK, repository.Authors())
|
|
}
|