bleehu / CXDocs

Compound X rules displayed as web pages. Written in Python, served with Flask and bootstraped with bootswatch.
1 stars 1 forks source link

DRY out routes and make RESTful endpoints #172

Open bleehu opened 6 years ago

bleehu commented 6 years ago

The reason it won't let you have multiple routes with the same address, but different methods is because it's way easier to check the request.method field.

http://flask.pocoo.org/docs/1.0/quickstart/#http-methods

We could save future devs a hell of a lot of heartache if we do this, and I can actually put RESTful APIs on my resume. Derp.