22 lines
403 B
Go
22 lines
403 B
Go
package routes
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"go.laravel.com/config"
|
|
"go.laravel.com/routing"
|
|
"go.laravel.com/web"
|
|
|
|
"app/handlers/incident"
|
|
"app/handlers/welcome"
|
|
)
|
|
|
|
func Web(route *routing.Router, cfg *config.Config) {
|
|
route.Get("/", welcome.Show)
|
|
route.Get("/incidents/{scope}/{target}", incident.Show)
|
|
|
|
route.Fallback(func(*web.Request) *web.Response {
|
|
return web.Abort(http.StatusNotFound)
|
|
})
|
|
}
|