Can I have a url schema like this

7 views
Skip to first unread message

r/ Wobben

unread,
Mar 26, 2016, 6:26:45 PM3/26/16
to Snap Framework
Hello,

I like to develop a accounting package in Snap.

I like to have a url schema like this ;

/ accounts                                             to see all accounts
/account/accountname                           to see the data of a particular account.
./account/subaccount                             to see all subaccounts
/account/subaccount/accountname          to see all the data of a paricular subaccount.




MightyByte

unread,
Apr 2, 2016, 10:35:42 PM4/2/16
to snap_fr...@googlegroups.com
Yes, you can do this.

route [ ("accounts", listAccountsHandler)
, ("account/:actname", singleAccountHandler)
, ("account/subaccount", subaccountHandler)
, ("account/subaccount/:subname", singleSubaccountHandler)
]
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Snap Framework" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to snap_framewor...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages