Rework authentication system
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -13,6 +13,15 @@ export function view(name: string, data?: {[key: string]: any}): ViewResponseFac
|
||||
return new ViewResponseFactory(name, data)
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper function that creates a new ViewResponseFactory that redirects the user to
|
||||
* the given URL.
|
||||
* @param url
|
||||
*/
|
||||
export function redirectToGet(url: string): ViewResponseFactory {
|
||||
return view('@extollo:redirect', { redirectUrl: url })
|
||||
}
|
||||
|
||||
/**
|
||||
* HTTP response factory that uses the ViewEngine service to render a view
|
||||
* and send it as HTML.
|
||||
|
||||
Reference in New Issue
Block a user