Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions examples/projects/link-shortener/app.log
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion examples/projects/link-shortener/typego.modules.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
Binary file added typego
Binary file not shown.
Loading