21 lines
413 B
Plaintext
21 lines
413 B
Plaintext
import "pkg:/components/Web/WebServer/Http/HttpRouter.bs"
|
|
|
|
namespace Http
|
|
|
|
class HomeRouter extends HttpRouter
|
|
|
|
function new()
|
|
super()
|
|
end function
|
|
|
|
@get("/")
|
|
function GoHome(context as object) as boolean
|
|
response = context.response
|
|
response.Redirect("/index.html")
|
|
return true
|
|
end function
|
|
|
|
end class
|
|
|
|
end namespace
|