riganti / dotvvm

Open source MVVM framework for Web Apps
https://www.dotvvm.com
Apache License 2.0
745 stars 97 forks source link

Move all dotvvm internal routes to the `/_dotvvm/` prefix #1539

Open exyi opened 1 year ago

exyi commented 1 year ago

Currently, we internally use a lot of different endpoints (dotvvmResource, something for file upload, returned files, ...). The new things, like configuration page are under /_dotvvm prefix, so it would make sense to move everything else into that directory too.

This will make it easier to whitelist all dotvvm requests, avoid conflicts on websites with a /{username} route (like github, twitter does), and feel less adhoc in general.

It's breaking, there are definitely people hardcoding dotvvmResource somewhere, but I don't think it's common

exyi commented 1 year ago

Actually, .dotvvm could be a better choice, in the style of .well-known. Underscore tends to be valid characters in names more often than the dot.