Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
chore(url): add NextJS API url for 'getQueryTypes'
Browse files Browse the repository at this point in the history
  ## what
  - Add NextJS API url for 'getQueryTypesUrl'

  ## how
  - add API url route for 'getQueryTypes'

  ## why
  - this will be used by Redux Toolkit Query to send a query request

  ## where
  - ./src/utils/url/api.ts

  ## usage
  • Loading branch information
Clumsy-Coder committed Aug 20, 2023
1 parent f9138d7 commit a03bddf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/utils/url/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,12 @@ export const getSummaryRawUrl = 'summary?raw=true';
export const getForwardedDestinationsUrl = 'forwardedDestinations';

//-------------------------------------------------------------------------------------------------

/**
* URL for fetching Pi-hole Query types
* @remarks Authorization required
* @remarks full URL `/api/queryTypes`
*/
export const getQueryTypesUrl = 'queryTypes';

//-------------------------------------------------------------------------------------------------

0 comments on commit a03bddf

Please sign in to comment.