Skip to content
Snippets Groups Projects
routes.go 284 B
Newer Older
Lucendio's avatar
Lucendio committed
package routing

import (
    f "github.com/gofiber/fiber/v2"
)


func SetRoutes( router *f.App ){
    router.Get( "/", func( c *f.Ctx ) error {
        return c.SendString( "Hello World!" )
    })
gjahn's avatar
gjahn committed

    router.Use( func( c *f.Ctx ) error {
        return c.SendStatus( 418 )
    })
Lucendio's avatar
Lucendio committed
}