video-starter

This commit is contained in:
Hunter Johnston 2023-02-05 13:22:35 -05:00
parent 3908681038
commit 28b1cb60f1
3 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,3 @@
import type { LayoutServerLoad } from "./$types"
export const load: LayoutServerLoad = async () => {}

View File

@ -28,7 +28,7 @@
<h3>New Article</h3> <h3>New Article</h3>
<label for="title"> Title </label> <label for="title"> Title </label>
<input type="text" id="title" name="title" /> <input type="text" id="title" name="title" />
<label for="title"> Title </label> <label for="title"> Content </label>
<textarea id="content" name="content" rows={5} /> <textarea id="content" name="content" rows={5} />
<button type="submit">Add Article</button> <button type="submit">Add Article</button>
</form> </form>

View File

@ -0,0 +1,5 @@
import type { RequestHandler } from "./$types"
export const POST: RequestHandler = async () => {
return new Response()
}