Browse Source

:ok_hand: Add a component and modify API routing

master
Clement Desmidt 9 months ago
parent
commit
ec6608011a
3 changed files with 232 additions and 2 deletions
  1. 1
    0
      composer.json
  2. 229
    1
      composer.lock
  3. 2
    1
      routes/api.php

+ 1
- 0
composer.json View File

@@ -6,6 +6,7 @@
6 6
     "type": "project",
7 7
     "require": {
8 8
         "php": "^7.1.3",
9
+        "doctrine/dbal": "^2.8",
9 10
         "fideloper/proxy": "^4.0",
10 11
         "guzzlehttp/guzzle": "^6.3",
11 12
         "laravel/framework": "5.7.*",

+ 229
- 1
composer.lock View File

@@ -4,7 +4,7 @@
4 4
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
5 5
         "This file is @generated automatically"
6 6
     ],
7
-    "content-hash": "26c27c3f93b3bdb2643e7e1d10bcd739",
7
+    "content-hash": "890ee379178f7dd135419fd930d029fc",
8 8
     "packages": [
9 9
         {
10 10
             "name": "dnoegel/php-xdg-base-dir",
@@ -40,6 +40,234 @@
40 40
             "time": "2014-10-24T07:27:01+00:00"
41 41
         },
42 42
         {
43
+            "name": "doctrine/cache",
44
+            "version": "v1.8.0",
45
+            "source": {
46
+                "type": "git",
47
+                "url": "https://github.com/doctrine/cache.git",
48
+                "reference": "d768d58baee9a4862ca783840eca1b9add7a7f57"
49
+            },
50
+            "dist": {
51
+                "type": "zip",
52
+                "url": "https://api.github.com/repos/doctrine/cache/zipball/d768d58baee9a4862ca783840eca1b9add7a7f57",
53
+                "reference": "d768d58baee9a4862ca783840eca1b9add7a7f57",
54
+                "shasum": ""
55
+            },
56
+            "require": {
57
+                "php": "~7.1"
58
+            },
59
+            "conflict": {
60
+                "doctrine/common": ">2.2,<2.4"
61
+            },
62
+            "require-dev": {
63
+                "alcaeus/mongo-php-adapter": "^1.1",
64
+                "doctrine/coding-standard": "^4.0",
65
+                "mongodb/mongodb": "^1.1",
66
+                "phpunit/phpunit": "^7.0",
67
+                "predis/predis": "~1.0"
68
+            },
69
+            "suggest": {
70
+                "alcaeus/mongo-php-adapter": "Required to use legacy MongoDB driver"
71
+            },
72
+            "type": "library",
73
+            "extra": {
74
+                "branch-alias": {
75
+                    "dev-master": "1.8.x-dev"
76
+                }
77
+            },
78
+            "autoload": {
79
+                "psr-4": {
80
+                    "Doctrine\\Common\\Cache\\": "lib/Doctrine/Common/Cache"
81
+                }
82
+            },
83
+            "notification-url": "https://packagist.org/downloads/",
84
+            "license": [
85
+                "MIT"
86
+            ],
87
+            "authors": [
88
+                {
89
+                    "name": "Roman Borschel",
90
+                    "email": "roman@code-factory.org"
91
+                },
92
+                {
93
+                    "name": "Benjamin Eberlei",
94
+                    "email": "kontakt@beberlei.de"
95
+                },
96
+                {
97
+                    "name": "Guilherme Blanco",
98
+                    "email": "guilhermeblanco@gmail.com"
99
+                },
100
+                {
101
+                    "name": "Jonathan Wage",
102
+                    "email": "jonwage@gmail.com"
103
+                },
104
+                {
105
+                    "name": "Johannes Schmitt",
106
+                    "email": "schmittjoh@gmail.com"
107
+                }
108
+            ],
109
+            "description": "Caching library offering an object-oriented API for many cache backends",
110
+            "homepage": "https://www.doctrine-project.org",
111
+            "keywords": [
112
+                "cache",
113
+                "caching"
114
+            ],
115
+            "time": "2018-08-21T18:01:43+00:00"
116
+        },
117
+        {
118
+            "name": "doctrine/dbal",
119
+            "version": "v2.8.0",
120
+            "source": {
121
+                "type": "git",
122
+                "url": "https://github.com/doctrine/dbal.git",
123
+                "reference": "5140a64c08b4b607b9bedaae0cedd26f04a0e621"
124
+            },
125
+            "dist": {
126
+                "type": "zip",
127
+                "url": "https://api.github.com/repos/doctrine/dbal/zipball/5140a64c08b4b607b9bedaae0cedd26f04a0e621",
128
+                "reference": "5140a64c08b4b607b9bedaae0cedd26f04a0e621",
129
+                "shasum": ""
130
+            },
131
+            "require": {
132
+                "doctrine/cache": "^1.0",
133
+                "doctrine/event-manager": "^1.0",
134
+                "ext-pdo": "*",
135
+                "php": "^7.1"
136
+            },
137
+            "require-dev": {
138
+                "doctrine/coding-standard": "^4.0",
139
+                "jetbrains/phpstorm-stubs": "^2018.1.2",
140
+                "phpstan/phpstan": "^0.10.1",
141
+                "phpunit/phpunit": "^7.1.2",
142
+                "phpunit/phpunit-mock-objects": "!=3.2.4,!=3.2.5",
143
+                "symfony/console": "^2.0.5|^3.0|^4.0",
144
+                "symfony/phpunit-bridge": "^3.4.5|^4.0.5"
145
+            },
146
+            "suggest": {
147
+                "symfony/console": "For helpful console commands such as SQL execution and import of files."
148
+            },
149
+            "bin": [
150
+                "bin/doctrine-dbal"
151
+            ],
152
+            "type": "library",
153
+            "extra": {
154
+                "branch-alias": {
155
+                    "dev-master": "2.8.x-dev",
156
+                    "dev-develop": "3.0.x-dev"
157
+                }
158
+            },
159
+            "autoload": {
160
+                "psr-0": {
161
+                    "Doctrine\\DBAL\\": "lib/"
162
+                }
163
+            },
164
+            "notification-url": "https://packagist.org/downloads/",
165
+            "license": [
166
+                "MIT"
167
+            ],
168
+            "authors": [
169
+                {
170
+                    "name": "Roman Borschel",
171
+                    "email": "roman@code-factory.org"
172
+                },
173
+                {
174
+                    "name": "Benjamin Eberlei",
175
+                    "email": "kontakt@beberlei.de"
176
+                },
177
+                {
178
+                    "name": "Guilherme Blanco",
179
+                    "email": "guilhermeblanco@gmail.com"
180
+                },
181
+                {
182
+                    "name": "Jonathan Wage",
183
+                    "email": "jonwage@gmail.com"
184
+                }
185
+            ],
186
+            "description": "Database Abstraction Layer",
187
+            "homepage": "http://www.doctrine-project.org",
188
+            "keywords": [
189
+                "database",
190
+                "dbal",
191
+                "persistence",
192
+                "queryobject"
193
+            ],
194
+            "time": "2018-07-13T03:16:35+00:00"
195
+        },
196
+        {
197
+            "name": "doctrine/event-manager",
198
+            "version": "v1.0.0",
199
+            "source": {
200
+                "type": "git",
201
+                "url": "https://github.com/doctrine/event-manager.git",
202
+                "reference": "a520bc093a0170feeb6b14e9d83f3a14452e64b3"
203
+            },
204
+            "dist": {
205
+                "type": "zip",
206
+                "url": "https://api.github.com/repos/doctrine/event-manager/zipball/a520bc093a0170feeb6b14e9d83f3a14452e64b3",
207
+                "reference": "a520bc093a0170feeb6b14e9d83f3a14452e64b3",
208
+                "shasum": ""
209
+            },
210
+            "require": {
211
+                "php": "^7.1"
212
+            },
213
+            "conflict": {
214
+                "doctrine/common": "<2.9@dev"
215
+            },
216
+            "require-dev": {
217
+                "doctrine/coding-standard": "^4.0",
218
+                "phpunit/phpunit": "^7.0"
219
+            },
220
+            "type": "library",
221
+            "extra": {
222
+                "branch-alias": {
223
+                    "dev-master": "1.0.x-dev"
224
+                }
225
+            },
226
+            "autoload": {
227
+                "psr-4": {
228
+                    "Doctrine\\Common\\": "lib/Doctrine/Common"
229
+                }
230
+            },
231
+            "notification-url": "https://packagist.org/downloads/",
232
+            "license": [
233
+                "MIT"
234
+            ],
235
+            "authors": [
236
+                {
237
+                    "name": "Roman Borschel",
238
+                    "email": "roman@code-factory.org"
239
+                },
240
+                {
241
+                    "name": "Benjamin Eberlei",
242
+                    "email": "kontakt@beberlei.de"
243
+                },
244
+                {
245
+                    "name": "Guilherme Blanco",
246
+                    "email": "guilhermeblanco@gmail.com"
247
+                },
248
+                {
249
+                    "name": "Jonathan Wage",
250
+                    "email": "jonwage@gmail.com"
251
+                },
252
+                {
253
+                    "name": "Johannes Schmitt",
254
+                    "email": "schmittjoh@gmail.com"
255
+                },
256
+                {
257
+                    "name": "Marco Pivetta",
258
+                    "email": "ocramius@gmail.com"
259
+                }
260
+            ],
261
+            "description": "Doctrine Event Manager component",
262
+            "homepage": "https://www.doctrine-project.org/projects/event-manager.html",
263
+            "keywords": [
264
+                "event",
265
+                "eventdispatcher",
266
+                "eventmanager"
267
+            ],
268
+            "time": "2018-06-11T11:59:03+00:00"
269
+        },
270
+        {
43 271
             "name": "doctrine/inflector",
44 272
             "version": "v1.3.0",
45 273
             "source": {

+ 2
- 1
routes/api.php View File

@@ -14,10 +14,11 @@ use Illuminate\Http\Request;
14 14
 */
15 15
 
16 16
 Route::group(['middleware' => ['auth']], function() {
17
-    Route::post('/register', 'UsersController@create');
18 17
     Route::post('/links', 'LinksController@add');
19 18
 });
20 19
 
20
+Route::post('/register', 'UsersController@create');
21
+
21 22
 Route::middleware('auth:api')->get('/user', function (Request $request) {
22 23
     return $request->user();
23 24
 });

Loading…
Cancel
Save