mirror of
https://github.com/jimeh/ozu.io.git
synced 2026-02-19 08:06:39 +00:00
Fix epic typo :O
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
package web
|
||||
|
||||
import (
|
||||
"github.com/jimeh/ozu.io/shortner"
|
||||
"github.com/jimeh/ozu.io/shortener"
|
||||
"github.com/qiangxue/fasthttp-routing"
|
||||
)
|
||||
|
||||
// NewRouter creates a new routing.Router with all handlers registered.
|
||||
func NewRouter(shortner *shortner.Shortner) *routing.Router {
|
||||
func NewRouter(shortener *shortener.Shortener) *routing.Router {
|
||||
router := routing.New()
|
||||
handlers := Handlers{shortner}
|
||||
handlers := Handlers{shortener}
|
||||
|
||||
router.Get("/", handlers.Index)
|
||||
router.Get("/api/shorten", handlers.Shorten)
|
||||
|
||||
Reference in New Issue
Block a user