|
|
|
|
|
by pythonaut_16
3147 days ago
|
|
I don't know GitLab's exact motivations although I noticed the same thing. I suspect it might be because they're using Vue components on already existing Server Rendered pages as opposed to a full SPA, so by passing the endpoint in the template they can allow the actual URL for that page to be set in the controller, maintaining cohesiveness. E.g. on the server-side .html.erb they'd have something like `<div... data-endpoint="@controller.url">...</div>` |
|