Skip to content

res.sendFile instead of res.send & change pi.wifi #4

@Pantgom

Description

@Pantgom

Hi Tom, very good job. I have two questions to improve my project:

  1. How could I change the app.js code to send a file (example index.html, resources.html) instead of send a text (res.send()). I have tried to put sendFile(path/index.html) but nothing happens.
  2. I have tried to change "pi.wifi" in this same file to put something diferent in URL but fails again. If I put "anotherthing.wifi" must I change the name of the service???

Thanks in advance for your project and time.
Pablo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions