first commit
This commit is contained in:
11
internal/http/routes.go
Normal file
11
internal/http/routes.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user