mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
Add handler for /plugin/{}/assets (#5907)
This allows for React applications to be hosted in a plugins asset directory.
This commit is contained in:
parent
358193e25e
commit
815ce7139c
1 changed files with 1 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ func (rs pluginRoutes) Routes() chi.Router {
|
|||
|
||||
r.Route("/{pluginId}", func(r chi.Router) {
|
||||
r.Use(rs.PluginCtx)
|
||||
r.Get("/assets", rs.Assets)
|
||||
r.Get("/assets/*", rs.Assets)
|
||||
r.Get("/javascript", rs.Javascript)
|
||||
r.Get("/css", rs.CSS)
|
||||
|
|
|
|||
Loading…
Reference in a new issue