mirror of
https://github.com/kataras/iris.git
synced 2025-12-22 20:37:05 +00:00
Update to version 8.5.8 | Read HISTORY.md
Former-commit-id: 82128ce7a2896a9a8bafd7a5268b0b42057fc21a
This commit is contained in:
3
iris.go
3
iris.go
@@ -343,10 +343,11 @@ var (
|
||||
// Use that instead of `StaticWeb` for root "/" file server.
|
||||
//
|
||||
// Example: https://github.com/kataras/iris/tree/master/_examples/file-server/single-page-application
|
||||
func (app *Application) SPA(assetHandler context.Handler) {
|
||||
func (app *Application) SPA(assetHandler context.Handler) *router.SPABuilder {
|
||||
s := router.NewSPABuilder(assetHandler)
|
||||
wrapper := s.BuildWrapper(app.ContextPool)
|
||||
app.Router.WrapRouter(wrapper)
|
||||
return s
|
||||
}
|
||||
|
||||
// ConfigureHost accepts one or more `host#Configuration`, these configurators functions
|
||||
|
||||
Reference in New Issue
Block a user