Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Front room create not giving sufficient info to backend #8

Open
ebrakke opened this issue Jul 21, 2015 · 0 comments
Open

Front room create not giving sufficient info to backend #8

ebrakke opened this issue Jul 21, 2015 · 0 comments

Comments

@ebrakke
Copy link
Owner

ebrakke commented Jul 21, 2015

We need to make sure to pass in the type of content to the backend.
Also, would should be using the keyword content as opposed to topic as this more accurately reflects the endpoint docs and the idea of a room.

Current we have this as the post statement for a room:
In Room.js (frontend/src/js/services)

$http.post(api, {
            title: room.title,
            topic: room.topic.content,
            lat: room.location.lat,
            lng: room.location.lng,
            radius: room.location.radius

Proposed change:

$http.post(api, {
            title: room.title,
            """ content """: room.topic.content,
            """ type: room.topic.type """,
            lat: room.location.lat,
            lng: room.location.lng,
            radius: room.location.radius
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant