Skip to content

Commit e27b799

Browse files
[action] JSDoc documentation generated on 2025-01-18T11:02:08Z
1 parent 0f1b1c2 commit e27b799

17 files changed

+1667
-41
lines changed

docs/Post.html

Lines changed: 821 additions & 0 deletions
Large diffs are not rendered by default.

docs/Session.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,13 +648,13 @@ <h4 class="name" id="logout"><span class="type-signature"></span>logout<span cla
648648
</div>
649649

650650
<nav>
651-
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-routes_auth.html">routes/auth</a></li><li><a href="module-routes_index.html">routes/index</a></li></ul><h3>Classes</h3><ul><li><a href="Session.html">Session</a></li><li><a href="User.html">User</a></li></ul><h3>Global</h3><ul><li><a href="global.html#cookieMiddleware">cookieMiddleware</a></li><li><a href="global.html#errorHandler">errorHandler</a></li><li><a href="global.html#generateSessionId">generateSessionId</a></li><li><a href="global.html#loggerMiddleware">loggerMiddleware</a></li><li><a href="global.html#notFoundHandler">notFoundHandler</a></li><li><a href="global.html#parseCookies">parseCookies</a></li><li><a href="global.html#router">router</a></li><li><a href="global.html#sessionMiddleware">sessionMiddleware</a></li></ul>
651+
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-routes_auth.html">routes/auth</a></li><li><a href="module-routes_index.html">routes/index</a></li></ul><h3>Classes</h3><ul><li><a href="Post.html">Post</a></li><li><a href="Session.html">Session</a></li><li><a href="User.html">User</a></li></ul><h3>Global</h3><ul><li><a href="global.html#ADMIN">ADMIN</a></li><li><a href="global.html#AUTHOR">AUTHOR</a></li><li><a href="global.html#cookieMiddleware">cookieMiddleware</a></li><li><a href="global.html#errorHandler">errorHandler</a></li><li><a href="global.html#generateSessionId">generateSessionId</a></li><li><a href="global.html#loggerMiddleware">loggerMiddleware</a></li><li><a href="global.html#notFoundHandler">notFoundHandler</a></li><li><a href="global.html#parseCookies">parseCookies</a></li><li><a href="global.html#router">router</a></li><li><a href="global.html#sessionMiddleware">sessionMiddleware</a></li><li><a href="global.html#USER">USER</a></li></ul>
652652
</nav>
653653

654654
<br class="clear">
655655

656656
<footer>
657-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Fri Jan 17 2025 13:53:18 GMT+0000 (Coordinated Universal Time)
657+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Sat Jan 18 2025 11:02:08 GMT+0000 (Coordinated Universal Time)
658658
</footer>
659659

660660
<script> prettyPrint(); </script>

docs/User.html

Lines changed: 174 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h1 class="page-title">Class: User</h1>
2828

2929
<header>
3030

31-
<h2><span class="attribs"><span class="type-signature"></span></span>User<span class="signature">()</span><span class="type-signature"></span></h2>
31+
<h2><span class="attribs"><span class="type-signature"></span></span>User<span class="signature">(username, email, role)</span><span class="type-signature"></span></h2>
3232

3333
<div class="class-description">User class</div>
3434

@@ -45,7 +45,7 @@ <h2>Constructor</h2>
4545

4646

4747

48-
<h4 class="name" id="User"><span class="type-signature"></span>new User<span class="signature">()</span><span class="type-signature"></span></h4>
48+
<h4 class="name" id="User"><span class="type-signature"></span>new User<span class="signature">(username, email, role)</span><span class="type-signature"></span></h4>
4949

5050

5151

@@ -60,6 +60,101 @@ <h4 class="name" id="User"><span class="type-signature"></span>new User<span cla
6060

6161

6262

63+
<h5>Parameters:</h5>
64+
65+
66+
<table class="params">
67+
<thead>
68+
<tr>
69+
70+
<th>Name</th>
71+
72+
73+
<th>Type</th>
74+
75+
76+
77+
78+
79+
<th class="last">Description</th>
80+
</tr>
81+
</thead>
82+
83+
<tbody>
84+
85+
86+
<tr>
87+
88+
<td class="name"><code>username</code></td>
89+
90+
91+
<td class="type">
92+
93+
94+
<span class="param-type">string</span>
95+
96+
97+
98+
</td>
99+
100+
101+
102+
103+
104+
<td class="description last"></td>
105+
</tr>
106+
107+
108+
109+
<tr>
110+
111+
<td class="name"><code>email</code></td>
112+
113+
114+
<td class="type">
115+
116+
117+
<span class="param-type">string</span>
118+
119+
120+
121+
</td>
122+
123+
124+
125+
126+
127+
<td class="description last"></td>
128+
</tr>
129+
130+
131+
132+
<tr>
133+
134+
<td class="name"><code>role</code></td>
135+
136+
137+
<td class="type">
138+
139+
140+
<span class="param-type"><a href="global.html#Role">Role</a></span>
141+
142+
143+
144+
</td>
145+
146+
147+
148+
149+
150+
<td class="description last"></td>
151+
</tr>
152+
153+
154+
</tbody>
155+
</table>
156+
157+
63158

64159

65160

@@ -93,7 +188,7 @@ <h4 class="name" id="User"><span class="type-signature"></span>new User<span cla
93188

94189
<dt class="tag-source">Source:</dt>
95190
<dd class="tag-source"><ul class="dummy"><li>
96-
<a href="models_user.js.html">models/user.js</a>, <a href="models_user.js.html#line9">line 9</a>
191+
<a href="models_user.js.html">models/user.js</a>, <a href="models_user.js.html#line28">line 28</a>
97192
</li></ul></dd>
98193

99194

@@ -193,7 +288,75 @@ <h5>Type:</h5>
193288

194289
<dt class="tag-source">Source:</dt>
195290
<dd class="tag-source"><ul class="dummy"><li>
196-
<a href="models_user.js.html">models/user.js</a>, <a href="models_user.js.html#line14">line 14</a>
291+
<a href="models_user.js.html">models/user.js</a>, <a href="models_user.js.html#line38">line 38</a>
292+
</li></ul></dd>
293+
294+
295+
296+
297+
298+
299+
300+
</dl>
301+
302+
303+
304+
305+
306+
307+
308+
309+
<h4 class="name" id="role"><span class="type-signature"></span>role<span class="type-signature"> :<a href="global.html#Role">Role</a></span></h4>
310+
311+
312+
313+
314+
315+
316+
<h5>Type:</h5>
317+
<ul>
318+
<li>
319+
320+
<span class="param-type"><a href="global.html#Role">Role</a></span>
321+
322+
323+
</li>
324+
</ul>
325+
326+
327+
328+
329+
330+
<dl class="details">
331+
332+
333+
334+
335+
336+
337+
338+
339+
340+
341+
342+
343+
344+
345+
346+
347+
348+
349+
350+
351+
352+
353+
354+
355+
356+
357+
<dt class="tag-source">Source:</dt>
358+
<dd class="tag-source"><ul class="dummy"><li>
359+
<a href="models_user.js.html">models/user.js</a>, <a href="models_user.js.html#line40">line 40</a>
197360
</li></ul></dd>
198361

199362

@@ -261,7 +424,7 @@ <h5>Type:</h5>
261424

262425
<dt class="tag-source">Source:</dt>
263426
<dd class="tag-source"><ul class="dummy"><li>
264-
<a href="models_user.js.html">models/user.js</a>, <a href="models_user.js.html#line12">line 12</a>
427+
<a href="models_user.js.html">models/user.js</a>, <a href="models_user.js.html#line36">line 36</a>
265428
</li></ul></dd>
266429

267430

@@ -289,7 +452,7 @@ <h3 class="subsection-title">Methods</h3>
289452

290453

291454

292-
<h4 class="name" id=".loginUser"><span class="type-signature">(async, static) </span>loginUser<span class="signature">(username, password)</span><span class="type-signature"> &rarr; {Promise.&lt;(*|null)>}</span></h4>
455+
<h4 class="name" id=".loginUser"><span class="type-signature">(async, static) </span>loginUser<span class="signature">(username, password)</span><span class="type-signature"> &rarr; {Promise.&lt;(<a href="User.html">User</a>|null)>}</span></h4>
293456

294457

295458

@@ -403,7 +566,7 @@ <h5>Parameters:</h5>
403566

404567
<dt class="tag-source">Source:</dt>
405568
<dd class="tag-source"><ul class="dummy"><li>
406-
<a href="models_user.js.html">models/user.js</a>, <a href="models_user.js.html#line23">line 23</a>
569+
<a href="models_user.js.html">models/user.js</a>, <a href="models_user.js.html#line49">line 49</a>
407570
</li></ul></dd>
408571

409572

@@ -439,7 +602,7 @@ <h5>Returns:</h5>
439602
</dt>
440603
<dd>
441604

442-
<span class="param-type">Promise.&lt;(*|null)></span>
605+
<span class="param-type">Promise.&lt;(<a href="User.html">User</a>|null)></span>
443606

444607

445608
</dd>
@@ -553,7 +716,7 @@ <h5>Parameters:</h5>
553716

554717
<dt class="tag-source">Source:</dt>
555718
<dd class="tag-source"><ul class="dummy"><li>
556-
<a href="models_user.js.html">models/user.js</a>, <a href="models_user.js.html#line44">line 44</a>
719+
<a href="models_user.js.html">models/user.js</a>, <a href="models_user.js.html#line70">line 70</a>
557720
</li></ul></dd>
558721

559722

@@ -617,13 +780,13 @@ <h5>Returns:</h5>
617780
</div>
618781

619782
<nav>
620-
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-routes_auth.html">routes/auth</a></li><li><a href="module-routes_index.html">routes/index</a></li></ul><h3>Classes</h3><ul><li><a href="Session.html">Session</a></li><li><a href="User.html">User</a></li></ul><h3>Global</h3><ul><li><a href="global.html#cookieMiddleware">cookieMiddleware</a></li><li><a href="global.html#errorHandler">errorHandler</a></li><li><a href="global.html#generateSessionId">generateSessionId</a></li><li><a href="global.html#loggerMiddleware">loggerMiddleware</a></li><li><a href="global.html#notFoundHandler">notFoundHandler</a></li><li><a href="global.html#parseCookies">parseCookies</a></li><li><a href="global.html#router">router</a></li><li><a href="global.html#sessionMiddleware">sessionMiddleware</a></li></ul>
783+
<h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-routes_auth.html">routes/auth</a></li><li><a href="module-routes_index.html">routes/index</a></li></ul><h3>Classes</h3><ul><li><a href="Post.html">Post</a></li><li><a href="Session.html">Session</a></li><li><a href="User.html">User</a></li></ul><h3>Global</h3><ul><li><a href="global.html#ADMIN">ADMIN</a></li><li><a href="global.html#AUTHOR">AUTHOR</a></li><li><a href="global.html#cookieMiddleware">cookieMiddleware</a></li><li><a href="global.html#errorHandler">errorHandler</a></li><li><a href="global.html#generateSessionId">generateSessionId</a></li><li><a href="global.html#loggerMiddleware">loggerMiddleware</a></li><li><a href="global.html#notFoundHandler">notFoundHandler</a></li><li><a href="global.html#parseCookies">parseCookies</a></li><li><a href="global.html#router">router</a></li><li><a href="global.html#sessionMiddleware">sessionMiddleware</a></li><li><a href="global.html#USER">USER</a></li></ul>
621784
</nav>
622785

623786
<br class="clear">
624787

625788
<footer>
626-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Fri Jan 17 2025 13:53:18 GMT+0000 (Coordinated Universal Time)
789+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.7</a> on Sat Jan 18 2025 11:02:08 GMT+0000 (Coordinated Universal Time)
627790
</footer>
628791

629792
<script> prettyPrint(); </script>

0 commit comments

Comments
 (0)