first commit

This commit is contained in:
2026-02-06 21:08:15 +03:00
commit 2d7bd20ac0
12 changed files with 395 additions and 0 deletions

11
internal/http/routes.go Normal file
View File

@@ -0,0 +1,11 @@
package http
import "example.com/m/internal/handlers"
func (s *Server) routes() {
api := s.engine
api.GET("/ping", handlers.Ping)
api.GET("/l/*link", s.linksHandler.CreateLink)
s.engine.GET("/r/:id", s.linksHandler.Redirect)
}