Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jagdeep committed Jun 6, 2021
1 parent 1baa48a commit e64b347
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sorting.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package goapi

import (
"net/url"
"net/http"
"strings"
)

// Sorting ...
func (config *Config) Sorting(urlQuery *url.Values) (sortOrder string, sortBy string) {
func (config *Config) Sorting(req *http.Request) (sortOrder string, sortBy string) {
urlQuery := req.URL.Query()

validSortOrders := map[string]bool{
"desc": true,
"asc": true,
Expand Down

0 comments on commit e64b347

Please sign in to comment.