aquametalabs / aquameta

Web development platform built entirely in PostgreSQL
GNU General Public License v3.0
1.1k stars 52 forks source link

Abstract site in endpoint #86

Closed erichanson closed 3 years ago

erichanson commented 6 years ago

The http resource scope is global per-host. There can only one resource with the path of /, etc. When multiple bundles include the resources with colliding paths, it is unclear what how the system should handle that. Right now, each resource has a active boolean field, and presumably only one should be set to active, but it's just a hacky workaround.

Associate each resource record with the a record in the site table, typically one per bundle, and allow those sites to be turned on and off. Potentially per-role?

erichanson commented 5 years ago

For now, remove active boolean and just collide and 302 (?) when they have multiple choices.

erichanson commented 3 years ago

There might be some concept like this that the bootloader sets up, but as described, this is no longer a goal.