dolftax / sTeam-web-interface

[ARCHIVED] Web interface for sTeam server
https://github.com/eMBee/sTeam/tree/steam-2.9-source
GNU General Public License v2.0
3 stars 4 forks source link

Create routes to handle views #7

Closed dolftax closed 9 years ago

dolftax commented 9 years ago

Routes

State 1 - If not logged in, whichever URL,

PS: Handle the options in the breadcrumb accordingly.

eMBee commented 9 years ago

Excerpts from Jaipradeesh's message of 2015-06-10 15:39:31 +0200:

  • /:username - workarea ( list view )
  • /:room-name - workarea ( list view )
  • /:document-name - workarea ( detailed view )
  • /:container-name - workarea ( error view )
  • /:room-name/:sub-room-name - workarea ( list view )
  • /:room-name/:document-name - workarea ( detailed view )

how will you tell the difference between those routes? i suspect that you need to make this into one route, send the whole path to the server to find out what this is, and then choose a view accordingly

greetings, martin.

dolftax commented 9 years ago

I've edited the URLs. It makes sense now.

dolftax commented 9 years ago

The paths will not be handled by the client. Instead, be it room (or) document, the path is retrieved from the sTeam server itself and the same will be used.