adding rest-api
This commit is contained in:
16
rest-api/main.go
Normal file
16
rest-api/main.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"example.com/rest-api/db"
|
||||
"example.com/rest-api/routes"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func main() {
|
||||
db.InitDB()
|
||||
server := gin.Default()
|
||||
|
||||
routes.RegisterRoutes(server)
|
||||
|
||||
server.Run(":8080")
|
||||
}
|
||||
Reference in New Issue
Block a user