Created
September 7, 2015 12:58
-
-
Save lexfrl/47ab5fc510f6af0b282e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import r from "rethinkdb" | |
queries: { | |
user: ({ session }) => { | |
return r.table("users").get(session.userId) | |
}, | |
results: ({route: {params: { id }}}) => { | |
return r.table("results").get(id) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Router from "routr-map"; | |
export default new Router({ | |
"login": { | |
}, | |
"friends": { | |
":id": { | |
} | |
}, | |
"results": { | |
":id": { | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment