feat: login + register html templates
This commit is contained in:
17
templates/pages/login.html
Normal file
17
templates/pages/login.html
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{{ define "content" }}
|
||||||
|
<form method="POST" action="/api/v1/login">
|
||||||
|
<label for="email">
|
||||||
|
Email:
|
||||||
|
<input type="email" name="email" required>
|
||||||
|
</label>
|
||||||
|
<br>
|
||||||
|
<label for="email">
|
||||||
|
Password:
|
||||||
|
<input type="password" name="password" required>
|
||||||
|
</label>
|
||||||
|
<br>
|
||||||
|
<button type="submit">
|
||||||
|
Login
|
||||||
|
</button>
|
||||||
|
</form>
|
||||||
|
{{ end }}
|
21
templates/pages/register.html
Normal file
21
templates/pages/register.html
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{{ define "content" }}
|
||||||
|
<form method="POST" action="/api/v1/register">
|
||||||
|
<label for="email">
|
||||||
|
Full Name:
|
||||||
|
<input type="text" name="full_name" required>
|
||||||
|
</label>
|
||||||
|
<label for="email">
|
||||||
|
Email:
|
||||||
|
<input type="email" name="email" required>
|
||||||
|
</label>
|
||||||
|
<br>
|
||||||
|
<label for="email">
|
||||||
|
Password:
|
||||||
|
<input type="password" name="password" required>
|
||||||
|
</label>
|
||||||
|
<br>
|
||||||
|
<button type="submit">
|
||||||
|
Register
|
||||||
|
</button>
|
||||||
|
</form>
|
||||||
|
{{ end }}
|
Reference in New Issue
Block a user