mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-17 04:54:52 +00:00
Updated as requested
This commit is contained in:
@@ -48,7 +48,7 @@ type Harness struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func renderError(iw http.ResponseWriter, ir *http.Request, err error) {
|
func renderError(iw http.ResponseWriter, ir *http.Request, err error) {
|
||||||
context := revel.NewGOContext(nil)
|
context := revel.NewGoContext(nil)
|
||||||
context.Request.SetRequest(ir)
|
context.Request.SetRequest(ir)
|
||||||
context.Response.SetResponse(iw)
|
context.Response.SetResponse(iw)
|
||||||
c := revel.NewController(context)
|
c := revel.NewController(context)
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ func init() {
|
|||||||
revel.ActionInvoker, // Invoke the action.
|
revel.ActionInvoker, // Invoke the action.
|
||||||
}
|
}
|
||||||
|
|
||||||
// register startup functions with OnAppStart
|
// Register startup functions with OnAppStart
|
||||||
// revel.DevMode and revel.RunMode only work inside of OnAppStart. See Example Startup Script
|
// revel.DevMode and revel.RunMode only work inside of OnAppStart. See Example Startup Script
|
||||||
// ( order dependent )
|
// ( order dependent )
|
||||||
// revel.OnAppStart(ExampleStartupScript)
|
// revel.OnAppStart(ExampleStartupScript)
|
||||||
|
|||||||
Reference in New Issue
Block a user