metakgp / chillzone

Find a place to chill during class hours in IIT KGP
https://chill.metakgp.org
GNU General Public License v3.0
22 stars 27 forks source link

Chillzone not opening on campus network #81

Closed Bikram-ghuku closed 3 months ago

Bikram-ghuku commented 3 months ago

Describe the bug Chillzone makes requests to wrong endpoint to check if on campus network https://github.com/metakgp/chillzone/blob/ff22decb84918c91668329b01f4c611aa4982888/frontend/src/constants/constants.ts#L1

To Reproduce Steps to reproduce the behavior:

  1. Login to heimdall
  2. Go to chillzone

Expected behavior Should open the website as I am on Campus network

Screenshots image

Desktop (please complete the following information):

Additional context Fix to send the request to proper endpoint

chirag-ghosh commented 3 months ago

It should use the new url: https://heimdall-api.metakgp.org/campus-check Can you please make a PR making the change?

Bikram-ghuku commented 3 months ago

Sure