Raynes / refheap

The Reference Heap. A Clojure pastebin powered by Compojure, MongoDB, and Pygments.
129 stars 30 forks source link

Allow www.refheap.com/pasteid #114

Closed Raynes closed 11 years ago

Raynes commented 11 years ago

@briangonzalez made the very excellent point that we don't seem to have a good reason for making our paste urls look like www.refheap.com/paste/pasteid. The indirection of /paste is unnecessary. I think we can just do www.refheap.com/pasteid instead, and then redirect all the old URLs to this new url (or just support both, but I think we should use the former and redirect old URLS). This will not effect the API.

@programble You're welcome to take this on, otherwise I will look into it this weekend. It will require a bit of route rejiggering so you'd need to learn a bit about compojure if you don't already know the route regex syntax and such. Incidentally I would also need to learn this so we're on more or less equally level ground here.