diff --git a/examples/projects/link-shortener/app.log b/examples/projects/link-shortener/app.log new file mode 100644 index 0000000..fa7d7d2 --- /dev/null +++ b/examples/projects/link-shortener/app.log @@ -0,0 +1,23 @@ +[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached. + +[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production. + - using env: export GIN_MODE=release + - using code: gin.SetMode(gin.ReleaseMode) + +[GIN-debug] GET /api/health --> reflect.makeFuncStub (3 handlers) +[GIN-debug] POST /api/shorten --> reflect.makeFuncStub (3 handlers) +[GIN-debug] GET /api/shorten --> reflect.makeFuncStub (3 handlers) +[GIN-debug] GET /api/stats/:code --> reflect.makeFuncStub (3 handlers) +[GIN-debug] GET /api/links --> reflect.makeFuncStub (3 handlers) +[GIN-debug] GET /:code --> reflect.makeFuncStub (3 handlers) +🔗 Shortlink API v1.0 + Endpoints: + GET /api/shorten?url=... - Create short link + GET /:code - Redirect to original + GET /api/stats/:code - View click stats + GET /api/links - List all links + +🚀 Starting on http://localhost:8080 +[GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value. +Please check https://github.com/gin-gonic/gin/blob/master/docs/doc.md#dont-trust-all-proxies for details. +[GIN-debug] Listening and serving HTTP on :8080 diff --git a/examples/projects/link-shortener/typego.modules.json b/examples/projects/link-shortener/typego.modules.json index 81ae0d8..3d7b8f8 100644 --- a/examples/projects/link-shortener/typego.modules.json +++ b/examples/projects/link-shortener/typego.modules.json @@ -1,6 +1,6 @@ { "dependencies": { - "github.com/gin-gonic/gin": "latest", + "github.com/gin-gonic/gin": "v1.11.0", "github.com/teris-io/shortid": "latest" }, "compiler": { diff --git a/typego b/typego new file mode 100755 index 0000000..28f6560 Binary files /dev/null and b/typego differ