Skip to content

Commit

Permalink
36 bug submit laundry request not working (#37)
Browse files Browse the repository at this point in the history
* Fixes submit laundry request

* chnage submitrequest to post
  • Loading branch information
clint156 authored Dec 5, 2023
1 parent 056ff80 commit c59c572
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
### - fixed typo in adapter.go from /laundry/reqeustservice to /laundry/requestservice

## [2.0.12]
### Added
Expand Down
4 changes: 2 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
Patches for **Gateway Building Block** in this repository will only be applied to the following versions:
| Version | Supported |
| ------- | ------------------ |
| 2.0.12 | :white_check_mark: |
| < 2.0.12| :x: |
| 2.0.13 | :white_check_mark: |
| < 2.0.13| :x: |

## Reporting a Bug or Vulnerability

Expand Down
2 changes: 1 addition & 1 deletion driver/web/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (a Adapter) Start() {
mainRouter.HandleFunc("/laundry/rooms", a.wrapFunc(a.clientAPIsHandler.getLaundryRooms, a.auth.client.User)).Methods("GET")
mainRouter.HandleFunc("/laundry/room", a.wrapFunc(a.clientAPIsHandler.getRoomDetails, a.auth.client.User)).Methods("GET")
mainRouter.HandleFunc("/laundry/initrequest", a.wrapFunc(a.clientAPIsHandler.initServiceRequest, a.auth.client.User)).Methods("GET")
mainRouter.HandleFunc("/laundry/reqeustservice", a.wrapFunc(a.clientAPIsHandler.submitServiceRequest, nil)).Methods("GET")
mainRouter.HandleFunc("/laundry/requestservice", a.wrapFunc(a.clientAPIsHandler.submitServiceRequest, nil)).Methods("POST")

mainRouter.HandleFunc("/wayfinding/building", a.wrapFunc(a.clientAPIsHandler.getBuilding, a.auth.client.Standard)).Methods("GET")
mainRouter.HandleFunc("/wayfinding/entrance", a.wrapFunc(a.clientAPIsHandler.getEntrance, a.auth.client.Standard)).Methods("GET")
Expand Down
2 changes: 1 addition & 1 deletion driver/web/docs/gen/def.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.0.3
info:
title: Rokwire Gateway Building Block API
description: Gateway Building Block API Documentation
version: 2.0.12
version: 2.0.13
servers:
- url: 'https://api.rokwire.illinois.edu/gateway'
description: Production server
Expand Down
2 changes: 1 addition & 1 deletion driver/web/docs/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.0.3
info:
title: Rokwire Gateway Building Block API
description: Gateway Building Block API Documentation
version: 2.0.12
version: 2.0.13
servers:
- url: 'https://api.rokwire.illinois.edu/gateway'
description: Production server
Expand Down

0 comments on commit c59c572

Please sign in to comment.