From 7bddb9a54e417d00843b7a7061d7a2f2c8f179c7 Mon Sep 17 00:00:00 2001 From: ruihildt Date: Thu, 1 Aug 2019 22:38:07 +0200 Subject: [PATCH] Add server demo link --- README.md | 3 +++ index.js | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a9c8f76..cbf323a 100644 --- a/README.md +++ b/README.md @@ -16,12 +16,15 @@ Sleep Tracker is intended for anyone interested in improving their sleep and hea - Make recommendations not only based on sleep time, but also on bed time (some reasearch will need to be done in that area) - Connect to third party sleep tracking services +> Server demo: https://sleep-tracker-rui.herokuapp.com/ + ## API Documentation ___ > Values required in **`bold`**. > All requests need to provide with a JSON Web Token for authentication, except for **`/api/auth/register`** and **`/api/auth/login`**. + ### USERS SCHEMA | **`users`** | field | data type | metadata | | :--------| :---------------- | :-------------------------------------------------- | diff --git a/index.js b/index.js index 46a93a6..cbf59fd 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,8 @@ const server = require("./api/server"); server.get("/", (req, res) => { res.json({ - message: `API server for Sleep Tracker running. :)` + message: `API server for Sleep Tracker up and running. :)`, + documentation: `https://github.com/ruihildt/sleep-tracker-backend#api-documentation` }); });