SaturnFramework / Saturn

Opinionated, web development framework for F# which implements the server-side, functional MVC pattern
https://saturnframework.org
MIT License
703 stars 108 forks source link

Fail on second router #384

Open ChrSteinert opened 1 month ago

ChrSteinert commented 1 month ago

This adds a failure, when use_router is called a second time, or use_router after no_router (or the other way around). This is to avoid confusion: When a second (or more) router is added, only the last added router actually does things. An explicit error seems more useful.

Fixes #323.

I am happy to adjust the error messages, btw…