1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | Object.defineProperty(exports, "__esModule", { value: true });
|
7 | exports.RouteSource = exports.BaseRoute = void 0;
|
8 |
|
9 |
|
10 |
|
11 | class BaseRoute {
|
12 | |
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | constructor(verb, path, spec) {
|
19 | this.path = path;
|
20 | this.spec = spec;
|
21 | this.verb = verb.toLowerCase();
|
22 | }
|
23 | describe() {
|
24 | return `${this.verb} ${this.path}`;
|
25 | }
|
26 | toString() {
|
27 | return `${this.constructor.name} - ${this.describe()}`;
|
28 | }
|
29 | }
|
30 | exports.BaseRoute = BaseRoute;
|
31 | class RouteSource {
|
32 | constructor(value) {
|
33 | this.value = value;
|
34 | this.type = 'route';
|
35 | }
|
36 | toString() {
|
37 | return this.value.toString();
|
38 | }
|
39 | }
|
40 | exports.RouteSource = RouteSource;
|
41 |
|
\ | No newline at end of file |