source: frontend/node_modules/workbox-routing/src/utils/constants.ts

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago

Fix frontend appearance

  • Property mode set to 100644
File size: 721 bytes
Line 
1/*
2 Copyright 2018 Google LLC
3
4 Use of this source code is governed by an MIT-style
5 license that can be found in the LICENSE file or at
6 https://opensource.org/licenses/MIT.
7*/
8
9import '../_version.js';
10
11export type HTTPMethod = 'DELETE' | 'GET' | 'HEAD' | 'PATCH' | 'POST' | 'PUT';
12
13/**
14 * The default HTTP method, 'GET', used when there's no specific method
15 * configured for a route.
16 *
17 * @type {string}
18 *
19 * @private
20 */
21export const defaultMethod: HTTPMethod = 'GET';
22
23/**
24 * The list of valid HTTP methods associated with requests that could be routed.
25 *
26 * @type {Array<string>}
27 *
28 * @private
29 */
30export const validMethods: HTTPMethod[] = [
31 'DELETE',
32 'GET',
33 'HEAD',
34 'PATCH',
35 'POST',
36 'PUT',
37];
Note: See TracBrowser for help on using the repository browser.