Skip to content

Powered by Grav + Helios

Get Plugin Page Script

Get Plugin Page Script

GET /gpm/plugins/{slug}/page-script
Serve the page-level web component JavaScript file for a plugin. The file is loaded from admin-next/pages/{slug}.js within the plugin directory. Returned with Content-Type application/javascript and immutable cache headers.

Parameters

Name Type Description
slug required string The plugin slug

Response Codes

200 Success (JavaScript content)
401 Unauthorized
404 Page component not found for plugin