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

Add a button to create a new sensor #93

Open
glaslos opened this issue Oct 19, 2023 · 2 comments
Open

Add a button to create a new sensor #93

glaslos opened this issue Oct 19, 2023 · 2 comments

Comments

@glaslos
Copy link
Member

glaslos commented Oct 19, 2023

Button opens modal with form for sensor name.
Create a new backend endpoint POST /sensors to create new sensors.
Sensor names are unique per user, not globally.
Confirming form creates a new sensor entry in the database with the chosen name.

@Tushar-kalsi
Copy link
Contributor

Tushar-kalsi commented Nov 6, 2023

Hi @glaslos

For backend :
Can you validate if my approach for adding Endpoint /sensors :

  1. Create endpoint /sensors in routes.go file . use Cors ,Bearer middleware .
  2. Make a sensor.go file in backend/repos directory .
  3. Add Sensor Repo , make a function for creating sensor table .here
  4. Create handler function for post request handler in handler.go file .

@glaslos
Copy link
Member Author

glaslos commented Nov 15, 2023

@Tushar-kalsi sounds good, have a look at #92

@honeynet honeynet deleted a comment from ArpitKRS Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants