'use strict';

const router = require('express').Router();
const temperatureapi = require('../api/temperature');
const requiresApiAuthorization = require('../auth/requiresApiAuthorization');

router.get('/api/temperature/currentTemperature', requiresApiAuthorization(), temperatureapi.getCurrentTemperature);

module.exports = router;

'use strict';

const router = require('express').Router();
const temperatureapi = require('../api/temperature');
const requiresApiAuthorization = require('../auth/requiresApiAuthorization');
const auth = require('../auth/Authentication');

router.get('/api/temperature/currentTemperature', requiresApiAuthorization(), temperatureapi.getCurrentTemperature);

router.get('/api/temperature/', auth.getBearerHandler(), temperatureapi.getCurrentTemperature);

module.exports = router;

Add token authenticated temperature route
Add token authenticated temperature route
